Page 1 of 1
setLinearVelocity
Posted: Thu Jun 18, 2009 8:27 am
by russellbartley
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?
Re: setLinearVelocity
Posted: Fri Jun 19, 2009 6:19 am
by russellbartley
sorry wrong thread.
Shall I create another elsewhere?
Re: setLinearVelocity
Posted: Thu Oct 27, 2011 3:05 pm
by zarlox
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?
As far as i know, yes, velocity , forces, mass and inertia all only relates to dynamic bodies.
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.