Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Apr 20, 2012 11:51 am 
Offline

Joined: Fri Apr 18, 2008 2:20 pm
Posts: 154
Hi,

is setLocalScaling() supposed to work when btBoxShape()::initializePolyhedralFeatures() has been called ?

The debug drawer doesn't seem to scale the box shape being rendered; it seems to be a debug drawer bug (going to investigate right now), however, the makes me feel that nobody has used this feature before, hence I am not sure whether this combination is valid or not ?

Thanks.
Greg


Top
 Profile  
 
PostPosted: Fri Apr 20, 2012 4:54 pm 
Offline
Site Admin
User avatar

Joined: Sun Jun 26, 2005 6:43 pm
Posts: 3744
Location: California, USA
setLocalScaling is not supported after calling initializePolyhedralFeatures. The polyhedral mesh generated by 'initializePolyhedralFeatures' is not updates anymore afterwards, so changing the collision shape afterwards is not a good idea.

(you should be able to check this in the source code)
Thanks,
Erwin


Top
 Profile  
 
PostPosted: Tue Apr 24, 2012 6:41 am 
Offline

Joined: Fri Apr 18, 2008 2:20 pm
Posts: 154
ok, understood, thanks for the answer !

BTW, what's the advantage of generating such polyhedral meshes, does it only speed up broadphase (and/or any other part of the detection), or does it helps with any other aspect ?


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] 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