Page 1 of 1

Linear Movement

Posted: Sat Apr 14, 2012 8:11 pm
by PhoenixX_2
Still determining if Bullet is an ideal thing to proceed with.

Is there any way to implement linear movement? That is, infinite/0 acceleration? For example, the movement of a character should have a constant velocity, and I should be quickly able to determine if I'm colliding in something in order to stop or resume animating.

Re: Linear Movement

Posted: Sun Apr 15, 2012 3:58 pm
by Felix Hansson
Well you can always set the linear velocity each frame, collision can be detected with callbacks

Re: Linear Movement

Posted: Sun Apr 15, 2012 8:48 pm
by PhoenixX_2
I guess I was asking what the exact method was for that.

Re: Linear Movement

Posted: Mon Apr 16, 2012 9:47 am
by Felix Hansson
http://bulletphysics.com/Bullet/BulletF ... dBody.html

btRigidBody has the following function: void SetLinearVelocity (const btVector3 &lin_vel) for the velocity, can't help you with collision callbacks though
since I'm working on that myself right now :p