Hi all,
I drop my object from a height and I need to know when it is stationary.
I've tried looking at getlinearvelocity.x/y/z and also adjusting the sleeping threshold (I can see no difference when I alter this).
Is there a proper (better!) method for checking this??
Thanks
How to check when an object is stationary
-
robagar
- Posts: 48
- Joined: Fri May 21, 2010 1:49 am
Re: How to check when an object is stationary
btCollisionObject::isActive() will tell you if something's been put to sleep...
-
markhula
- Posts: 34
- Joined: Thu Jun 17, 2010 10:11 am
Re: How to check when an object is stationary
Hi,
The problem is the object becomes visually "static" but the sleep takes longer to reach island_sleeping status.
As I mentioned adjusting the sleep threshold didn't seem to make a great difference.
What I am trying to achieve is an efficient way that once an object is static it goes to sleep immediately.(or at least can be put into that state)
Cheers
The problem is the object becomes visually "static" but the sleep takes longer to reach island_sleeping status.
As I mentioned adjusting the sleep threshold didn't seem to make a great difference.
What I am trying to achieve is an efficient way that once an object is static it goes to sleep immediately.(or at least can be put into that state)
Cheers