Object stuck once it stops.

Post Reply
attila3453
Posts: 1
Joined: Fri Feb 15, 2013 6:14 pm

Object stuck once it stops.

Post by attila3453 »

There's some strange behaviour of a sphere rigid body which is colliding with a triangle mesh. Everything works well as long as it's moving, but once it remains in place I can't move it. I'm using setLinearVeocity; is that the problem?
Spaddlewit
Posts: 28
Joined: Fri Sep 04, 2009 8:23 pm

Re: Object stuck once it stops.

Post by Spaddlewit »

You need to also call ->activate()

There's also a way to disable it from going to sleep altogether. setActivationFlags? It escapes me ATM..
Shogo
Posts: 6
Joined: Tue Aug 07, 2012 3:27 am

Re: Object stuck once it stops.

Post by Shogo »

You can try:

Code: Select all

yourSphere->setActivationState(DISABLE_DEACTIVATION);
User avatar
SynapticBytes
Posts: 74
Joined: Thu Feb 10, 2011 8:27 pm

Re: Object stuck once it stops.

Post by SynapticBytes »

It may not be an activation issue, although that's a good place to start. I've had some issues with shapes getting locked together, usually objects which may have thin dimensions in given axis, or with the world setup parameters not optimal for the shapes (e.g. a 2D world).
Post Reply