Hi
I'm wondering how to test if a CharacterController is moving.
thanks
Test if a character is moving
Re: Test if a character is moving
I've never used it but there is a getInterpolationLinearVelocity() method in btPairCachingGhostObject object
You could use it to get your velocity.
Look at here:
http://bulletphysics.org/Bullet/BulletF ... oller.html
You could use it to get your velocity.
Look at here:
http://bulletphysics.org/Bullet/BulletF ... oller.html
Re: Test if a character is moving
it doesn't work
Re: Test if a character is moving
What does not work, what did you try so far? Give us some input and we might be able to help you.
Re: Test if a character is moving
@bulletpoints: Are you sure that unity uses the Bullet Character controller? Is that from some BulletC# wrapper or so?
Re: Test if a character is moving
Was gonna ask the same question. Anyway, will try out the code and see how it does. Thanks.benelot wrote:@bulletpoints: Are you sure that unity uses the Bullet Character controller? Is that from some BulletC# wrapper or so?
Re: Test if a character is moving
If you find out how it works, tell us, it might help others!