Hey,
I'm implementing a gravity gun in my game, but I'm having some problems. Sometimes, when I'm trying to attract objects on the ground, the objects get stuck, and just after I collide with them, I'm able to attract them. Here's a small video showing the problem:
http://www.youtube.com/watch?v=8OBBIVMBLkg
Here I'm trying to attract the sphere on the ground (the sphere uses btSphereShape), and notice that, until I collide with the sphere, I'm not able to attract it.
Also, this only happens for some of the objects. For some of them the attraction works fine.
Any ideas?
Thanks!
possible bug with collisions
-
- Posts: 508
- Joined: Fri May 30, 2008 2:51 am
- Location: Ossining, New York
Re: possible bug with collisions
maybe you need to activate the rigid bodies, otherwise they remain asleep to conserve CPU, i think it's rb->activate()