Hi,
Is there a simple way to have a movable object in which all external forces are ignored, but still be able to act on other objects? In effect, I suppose it would act as though it had infinite mass, but still being able to move and rotate. At first I thought CF_NO_CONTACT_RESPONSE would be the solution, but I still want other objects to behave normally (bounce off, etc) when they collide with it.
Disable external forces?
-
- Posts: 4
- Joined: Sun Mar 15, 2009 7:20 pm
Re: Disable external forces?
You want a kinematic body.
-
- Posts: 229
- Joined: Sun Sep 30, 2007 7:58 am
Re: Disable external forces?
Hi,
take care that a kinematic body no more gets stopped by other objects. Its one way only.
If you just don't want to get velocities build up onto your body and to have a self controlled velocity you can zero out the linear and angular velocities after each physics step within an internal tick callback.
take care that a kinematic body no more gets stopped by other objects. Its one way only.
If you just don't want to get velocities build up onto your body and to have a self controlled velocity you can zero out the linear and angular velocities after each physics step within an internal tick callback.