Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Nov 20, 2006 12:22 am 
Offline
User avatar

Joined: Fri Aug 25, 2006 1:00 am
Posts: 33
Location: Heaven or Hell
*Still using Bullet 1.9*

The thing is like this : I have a ball that I control, initially I put a position in the MotionState and create the object and then (I saw that modifing the motionsate afterwards doesn't do anything, it's just used to copy data from somewhere else) I used the ccdPhysicsController->setPosition which works but... I have my ball on the surface and I save it's position and next time I wanna load the position, the thing is that if I do this without exiting the program and going back in, it all works fine but when I go back in, my object is pushed away really-really far, and now I gotta add 0.5 to Y to fix that, is that a bug or I was missing something or... I must upgrade ?

BTW: Bullet has these Vector2/Vector3 Classes, which I got as well,so if I wanna upgrade I gotta rename them as I did before, and it's a pain, a namespace of something could sort it out or something like BulletVector3 or btVector3 ? If this is different on recent release then let me know.


Top
 Profile  
 
PostPosted: Mon Nov 20, 2006 4:05 am 
Offline
Site Admin
User avatar

Joined: Sun Jun 26, 2005 6:43 pm
Posts: 3744
Location: California, USA
Please upgrade to Bullet 2.33 and read its Bullet User Manual and all should be fixed:
- All Bullet classes start with bt, so its btVector3 now.
- to set the position/transform of a dynamic body, just call rigidbody->setCenterOfMassTransform(newtrans).

Cheers,
Erwin



cippyboy wrote:
*Still using Bullet 1.9*

The thing is like this : I have a ball that I control, initially I put a position in the MotionState and create the object and then (I saw that modifing the motionsate afterwards doesn't do anything, it's just used to copy data from somewhere else) I used the ccdPhysicsController->setPosition which works but... I have my ball on the surface and I save it's position and next time I wanna load the position, the thing is that if I do this without exiting the program and going back in, it all works fine but when I go back in, my object is pushed away really-really far, and now I gotta add 0.5 to Y to fix that, is that a bug or I was missing something or... I must upgrade ?

BTW: Bullet has these Vector2/Vector3 Classes, which I got as well,so if I wanna upgrade I gotta rename them as I did before, and it's a pain, a namespace of something could sort it out or something like BulletVector3 or btVector3 ? If this is different on recent release then let me know.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 20, 2006 2:33 pm 
Offline
User avatar

Joined: Fri Aug 25, 2006 1:00 am
Posts: 33
Location: Heaven or Hell
Cool, I was avoiding that, thanks.


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

All times are UTC


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest


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:  
Powered by phpBB® Forum Software © phpBB Group