setLinearVelocity

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

setLinearVelocity

Post by russellbartley » Thu Jun 18, 2009 8:27 am

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 » Fri Jun 19, 2009 6:19 am

sorry wrong thread.

Shall I create another elsewhere?

zarlox
Posts: 31
Joined: Tue Apr 26, 2011 5:52 pm

Re: setLinearVelocity

Post by zarlox » Thu Oct 27, 2011 3:05 pm

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