Linear Movement

PhoenixX_2
Posts: 5
Joined: Fri Apr 13, 2012 4:11 pm

Linear Movement

Post 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.
Felix Hansson
Posts: 4
Joined: Fri Apr 06, 2012 1:00 pm

Re: Linear Movement

Post by Felix Hansson »

Well you can always set the linear velocity each frame, collision can be detected with callbacks
PhoenixX_2
Posts: 5
Joined: Fri Apr 13, 2012 4:11 pm

Re: Linear Movement

Post by PhoenixX_2 »

I guess I was asking what the exact method was for that.
Felix Hansson
Posts: 4
Joined: Fri Apr 06, 2012 1:00 pm

Re: Linear Movement

Post 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