Disable external forces?

fd9_
Posts: 4
Joined: Wed Nov 19, 2008 7:22 pm

Disable external forces?

Post by fd9_ »

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.
Ralith
Posts: 4
Joined: Sun Mar 15, 2009 7:20 pm

Re: Disable external forces?

Post by Ralith »

You want a kinematic body.
pico
Posts: 229
Joined: Sun Sep 30, 2007 7:58 am

Re: Disable external forces?

Post by pico »

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.