activate() crashes program

cobolt_dink
Posts: 72
Joined: Fri Apr 04, 2008 6:07 pm

activate() crashes program

Post by cobolt_dink »

I can't get it to happen all the time, but sometimes it seems if a body is already active and I try and active it again the program will crash. In the function

Code: Select all

btCollisionObject::activate(bool forceActivation)
on line

Code: Select all

if (forceActivation || !(m_collisionFlags & (CF_STATIC_OBJECT|CF_KINEMATIC_OBJECT)))
is where the debugger crashes to.

The only objects I try and activate or dynamic objects. The crash also seems to happen if I just check if the body is active before trying to activate it. This crashes to my code where I'm making the check.

Only odd thing I can think of is I create the rigid bodies with ISLAND_SLEEPING tag. The jitter of them moving around is to much to take.

I always leave the forceActivation bool to its default value. But setting it to true or false doesn't seem to make it not crash.
cobolt_dink
Posts: 72
Joined: Fri Apr 04, 2008 6:07 pm

Re: activate() crashes program

Post by cobolt_dink »

Bump this one last time.

Still have not really figured this one out. Have kind of narrowed it down to it only happens if a block is on edge and it gets activated.