Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball)
#12

Quote:
Originally Posted by Gammix
View Post
I don't see much of a difference. You can set object and environment properties in peppe's include to make object react accordingly when collision occurs. Its based on sphere physics and i am pretty sure you are using sphere to stimulate too, if not please tell me. Otherwise how can you call this accurate?

Accurate would be when you define each object models mass and also calculate weight dynamically while processing path.

You haven't provide much information about your plugin and claimed it more accurate.
I'm really wondering how can you guys TELL me this and compare a small code written in PAWN with Bullet Physics?
Have you ever paid attention to the videos that Peppe released?? No matter how much mass and what functions he put in his include you use, still it's far from accurate, when the object hits a wall the reaction is awful!
No offense to Peppe, he made an amazing include but you can never compare it to Bullet Physics, come on!

Bullet Physics library is being used by GTA IV and no. You can create both boxes and sphere collisions.

Please fetch more information about Bullet Physics before comparing a BIG Collision and Physics Library to an include written in PAWN.

However here are some functions to make it ACCURATE (I'm still working on it to add more):
Code:
native SetLinearVelocity(index, Float:vx, Float:vy, Float:vz);
native SetAngularVelocity(index, Float:vx, Float:vy, Float:vz);
native SetTorque(index, Float:tx, Float:ty, Float:tz);
native SetFriction(index, Float:friction);
native SetRollingFriction(index, Float:friction);
native SetSpinningFriction(index, Float:friction);
native SetAnisotropicFriction(index, Float:x, Float:y, Float:z, mode);
native SetRestitution(index, Float:rest);
native SetDamping(index, Float:lin_damping, Float:ang_damping);
native SetContactProcessingThres(index, Float:contactProcessingThres);
native SetHitFraction(index, Float:hitFraction);
native SetMass(index, Float:mass);
native SetSleepingThresholds(index, Float:linear, Float:angular);
native SetWorldGravity(Float:x, Float:y, Float:z);
native SetStaticFriction(index, Float:friction);
native SetStaticRollingFriction(index, Float:friction);
native SetStaticSpinningFriction(index, Float:friction);
native SetStaticAnisotropicFriction(index, Float:x, Float:y, Float:z, mode);
native SetStaticRestitution(index, Float:rest);
native SetStaticContactProcessingThres(index, Float:contactProcessingThres);
native SetStaticHitFraction(index, Float:hitFraction);
Quote:
Originally Posted by davve95
View Post
Awesome! I wonder if there's something similar for SP aswell. Alteast there's a Bullet physics ragdoll mod aviable
Game's CCollision and Physics simulation are also poor, I'm working on a mod to replace CCollision and simulation with Bullet Physics and release it on GTAForums That would be a performance optimization for GTA:SA and much features can be used.
Vehicle doors got collision with that mod!
Reply


Messages In This Thread
Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Aliassassin123456 - 02.12.2017, 08:10
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by rfr - 02.12.2017, 08:25
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by NealPeteros - 02.12.2017, 09:02
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Admigo - 02.12.2017, 09:24
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Aliassassin123456 - 02.12.2017, 09:49
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Eoussama - 02.12.2017, 10:30
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Aliassassin123456 - 02.12.2017, 10:37
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Spydah - 02.12.2017, 10:47
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Gammix - 03.12.2017, 22:47
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Twizted - 03.12.2017, 23:31
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by davve95 - 04.12.2017, 06:19
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Aliassassin123456 - 04.12.2017, 20:37
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Gammix - 05.12.2017, 00:05
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by PeppeAC - 05.12.2017, 00:15
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Crayder - 05.12.2017, 00:54
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Yashas - 06.12.2017, 05:57
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Aliassassin123456 - 06.12.2017, 12:16
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Kaperstone - 06.12.2017, 12:45
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Aliassassin123456 - 06.12.2017, 13:11
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Kaperstone - 06.12.2017, 13:19
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Aliassassin123456 - 06.12.2017, 13:30
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by iAmir - 06.12.2017, 18:38
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by RIDE2DAY - 08.12.2017, 01:55
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Aliassassin123456 - 08.12.2017, 17:04
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Pottus - 09.12.2017, 00:23
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by ramzki2 - 09.12.2017, 02:15
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Aliassassin123456 - 09.12.2017, 15:22
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Sting. - 09.12.2017, 15:55
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by IllidanS4 - 09.12.2017, 17:56
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Aliassassin123456 - 09.12.2017, 18:46

Forum Jump:


Users browsing this thread: 4 Guest(s)