Object stuck once it stops.
-
- Posts: 1
- Joined: Fri Feb 15, 2013 6:14 pm
Object stuck once it stops.
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?
-
- Posts: 28
- Joined: Fri Sep 04, 2009 8:23 pm
Re: Object stuck once it stops.
You need to also call ->activate()
There's also a way to disable it from going to sleep altogether. setActivationFlags? It escapes me ATM..
There's also a way to disable it from going to sleep altogether. setActivationFlags? It escapes me ATM..
Re: Object stuck once it stops.
You can try:
Code: Select all
yourSphere->setActivationState(DISABLE_DEACTIVATION);
- SynapticBytes
- Posts: 74
- Joined: Thu Feb 10, 2011 8:27 pm
Re: Object stuck once it stops.
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).