Problem disabling gravity for a rigid body #293
-
Hi, hope someone won't mind helping me. I am using ReactPhysics3d in my game engine but it does not seem to be respecting the gravity flag in the rigid body. I have set flag to false, and confirmed it by reading back the flags (isGravityEnabled()). I have two models, one with gravity enabled, one with gravity disabled. They both are affected by gravity. Is there something else I need to do? Here is my body creation code, it takes a pointer to a Model object to check whether I want gravity enabled (bool) for the model. Appreciate any advice :-)
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I got around this using the RigidBody::setType() function, setting to BodyType::STATIC and BodyType::DYNAMIC respectively. |
Beta Was this translation helpful? Give feedback.
I got around this using the RigidBody::setType() function, setting to BodyType::STATIC and BodyType::DYNAMIC respectively.