04.12.2017, 20:37
(
Last edited by Aliassassin123456; 04/12/2017 at 09:07 PM.
)
Quote:
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. |
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:
Awesome! I wonder if there's something similar for SP aswell. Alteast there's a Bullet physics ragdoll mod aviable
|
Vehicle doors got collision with that mod!