Page 1 of 1
Test if a character is moving
Posted: Thu Apr 28, 2016 11:40 am
by Furya
Hi
I'm wondering how to test if a CharacterController is moving.
thanks
Re: Test if a character is moving
Posted: Tue May 03, 2016 3:01 pm
by Furya
up
Re: Test if a character is moving
Posted: Tue May 03, 2016 3:11 pm
by S1L3nCe
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
Re: Test if a character is moving
Posted: Sat May 07, 2016 8:16 pm
by Furya
it doesn't work
Re: Test if a character is moving
Posted: Sun May 08, 2016 7:24 am
by benelot
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
Posted: Fri May 13, 2016 2:41 pm
by benelot
@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
Posted: Mon May 23, 2016 5:51 am
by Happymew
benelot wrote:@bulletpoints: Are you sure that unity uses the Bullet Character controller? Is that from some BulletC# wrapper or so?
Was gonna ask the same question. Anyway, will try out the code and see how it does. Thanks.
Re: Test if a character is moving
Posted: Mon May 23, 2016 9:14 am
by benelot
If you find out how it works, tell us, it might help others!