Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Linear Movement
PostPosted: Sat Apr 14, 2012 8:11 pm 
Offline

Joined: Fri Apr 13, 2012 4:11 pm
Posts: 5
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.


Top
 Profile  
 
 Post subject: Re: Linear Movement
PostPosted: Sun Apr 15, 2012 3:58 pm 
Offline

Joined: Fri Apr 06, 2012 1:00 pm
Posts: 4
Well you can always set the linear velocity each frame, collision can be detected with callbacks


Top
 Profile  
 
 Post subject: Re: Linear Movement
PostPosted: Sun Apr 15, 2012 8:48 pm 
Offline

Joined: Fri Apr 13, 2012 4:11 pm
Posts: 5
I guess I was asking what the exact method was for that.


Top
 Profile  
 
 Post subject: Re: Linear Movement
PostPosted: Mon Apr 16, 2012 9:47 am 
Offline

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot], Exabot [Bot], Google [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group