Render freeze after widget.

View previous topic View next topic Go down

Render freeze after widget.

Post  jonusx on Tue Apr 28, 2009 9:21 pm

I have a few widgets that when pressed, they change a physic objects position on to a playfield. every once an a while, after i press a widget, the render will freeze on the current frame. It doesn't crash just freezes. Why would this happen? This is the code that I use to transport my object:

Code:
void player_callback_tap_down( void *, void *, vec2 * )
{
   btTransform earth;
   btMotionState* motion;

   motion = _SIO2objectCyl->_btRigidBody->getMotionState();
   earth.setOrigin(btVector3(0.0f, 0.0f, 3.0f));
   motion->setWorldTransform(earth);
   _SIO2objectCyl->_btRigidBody->setMotionState(motion);
}

jonusx

Posts : 16
Join date : 2009-03-13

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum