OK - I give up - what is this assert telling me?
../bullet/src/BulletDynamics/Dynamics/btRigidBody.h:199: void btRigidBody::setLinearVelocity(const btVector3&): Assertion `m_collisionFlags !=btCollisionObject::CF_STATIC_OBJECT' failed.
m_collisionFlags !=btCollisionObject::CF_STATIC_OBJECT ?!?
- SteveBaker
- Posts: 127
- Joined: Sun Aug 13, 2006 4:41 pm
- Location: Cedar Hill, Texas
- Contact:
- Erwin Coumans
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
- Contact:
Re: m_collisionFlags !=btCollisionObject::CF_STATIC_OBJECT ?
You should not set the linear velocity for static objects. Only dynamic and/or kinematic objects can ever move. Do you have a full callstack which system is trying to set the linear velocity? It might be a bug,SteveBaker wrote:OK - I give up - what is this assert telling me?
../bullet/src/BulletDynamics/Dynamics/btRigidBody.h:199: void btRigidBody::setLinearVelocity(const btVector3&): Assertion `m_collisionFlags !=btCollisionObject::CF_STATIC_OBJECT' failed.
Thanks,
Erwin
Re: m_collisionFlags !=btCollisionObject::CF_STATIC_OBJECT ?
Probably it should be !(m_collisionFlags & btCollisionObject::CF_STATIC_OBJECT) instead of m_collisionFlags !=btCollisionObject::CF_STATIC_OBJECT. No?Erwin Coumans wrote:You should not set the linear velocity for static objects. Only dynamic and/or kinematic objects can ever move. Do you have a full callstack which system is trying to set the linear velocity? It might be a bug,SteveBaker wrote:OK - I give up - what is this assert telling me?
../bullet/src/BulletDynamics/Dynamics/btRigidBody.h:199: void btRigidBody::setLinearVelocity(const btVector3&): Assertion `m_collisionFlags !=btCollisionObject::CF_STATIC_OBJECT' failed.
Thanks,
Erwin
- Erwin Coumans
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
- Contact:
Re: m_collisionFlags !=btCollisionObject::CF_STATIC_OBJECT ?
Definately. I'll change it in the more readable 'isStaticObject()', which is the same.Jack wrote: Probably it should be !(m_collisionFlags & btCollisionObject::CF_STATIC_OBJECT) instead of m_collisionFlags !=btCollisionObject::CF_STATIC_OBJECT. No?
Thanks Jack,
Erwin