Hopefully this is something simple but I am not sure.
I have a rigid body representing the ground in a world I am building.
So the ground object itself works 100% as expected.
Now, I want to rotate the ground such that it works like a door/hatch on the floor; the ground will rotate on the x or z axis and everything on top of the ground will fall through.
I tried this:
Code: Select all
PhysicsShapeRigidBody->activate();
PhysicsShapeRigidBody->applyTorqueImpulse((*AxisAngleOfRotation));
I am thinking this is because the mass is equal to zero but if that is the case how can I have an object be set to be in one position at times and not be affected by gravity but be affected by rotations/other forces that I apply manually?
Thank you for your time.