Linear Movement

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

Linear Movement

Post by PhoenixX_2 » Sat Apr 14, 2012 8:11 pm

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 » Sun Apr 15, 2012 3:58 pm

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 » Sun Apr 15, 2012 8:48 pm

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 » Mon Apr 16, 2012 9:47 am

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

Post Reply