Hi, I'm putting more checks in my code, and wanted to know the effect on a btRigidBody that has its CF_KINEMATIC_OBJECT or CF_STATIC_OBJECT flag raised?
Should I be not allowing a call to setLinearVelocity on rigidBodies that have those flags set?
Does linearvelocity, mass, inertialtensors, and all the rest only apply to dynamic rigidbodies?
setLinearVelocity
-
- Posts: 9
- Joined: Thu Sep 04, 2008 4:17 am
Re: setLinearVelocity
sorry wrong thread.
Shall I create another elsewhere?
Shall I create another elsewhere?
-
- Posts: 31
- Joined: Tue Apr 26, 2011 5:52 pm
Re: setLinearVelocity
As far as i know, yes, velocity , forces, mass and inertia all only relates to dynamic bodies.russellbartley wrote:Hi, I'm putting more checks in my code, and wanted to know the effect on a btRigidBody that has its CF_KINEMATIC_OBJECT or CF_STATIC_OBJECT flag raised?
Should I be not allowing a call to setLinearVelocity on rigidBodies that have those flags set?
Does linearvelocity, mass, inertialtensors, and all the rest only apply to dynamic rigidbodies?
A static body is meant to be static, meaning it will never move.
A kinematic body is meant to be moved manually and then stay in place where you place it.