Page 1 of 1

Object stuck once it stops.

Posted: Fri Feb 15, 2013 6:19 pm
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?

Re: Object stuck once it stops.

Posted: Sat Feb 16, 2013 3:57 am
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..

Re: Object stuck once it stops.

Posted: Sun Feb 17, 2013 7:02 pm
by Shogo
You can try:

Code: Select all

yourSphere->setActivationState(DISABLE_DEACTIVATION);

Re: Object stuck once it stops.

Posted: Sun Feb 17, 2013 11:37 pm
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).