setLinearVelocity

Post Reply
russellbartley
Posts: 9
Joined: Thu Sep 04, 2008 4:17 am

setLinearVelocity

Post 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?
russellbartley
Posts: 9
Joined: Thu Sep 04, 2008 4:17 am

Re: setLinearVelocity

Post by russellbartley »

sorry wrong thread.

Shall I create another elsewhere?
zarlox
Posts: 31
Joined: Tue Apr 26, 2011 5:52 pm

Re: setLinearVelocity

Post 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.
Post Reply