Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Ghost object and scale
PostPosted: Tue Jun 26, 2012 1:58 pm 
Offline

Joined: Tue Jun 26, 2012 1:45 pm
Posts: 1
Hi all,

I am playing with jbullet, which is bullet 2.72 java port.

I have a character which is moved thanks to a ghost object.
To get the character collision shape as a BoxShape, i compute the local bounding box of the character mesh and then create the BoxShape with the half of the extent of my bounding box.

My problem comes when i apply an uniform scale on the mesh, in that case, the BoxShape should be scaled too.
How can i say to bullet to apply a scale over the BoxShape to get correct collisions ?

If i scale manualy the half extent given to the BoxShape, it works but it should not be the proper way to achieve that.
How to manage the case when the scale of the object change dynamically ?

Thanks for your attention,
Regards,
Ezzat


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 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:  
Powered by phpBB® Forum Software © phpBB Group