Boundary Points

5 views
Skip to first unread message

Jayasimha

unread,
Mar 9, 2017, 7:31:51 AM3/9/17
to osgbullet-users
Hi

  after adding a object to Collision World,Can we get Boundary Points for that Object?i mean points around it body.

Paul Martz

unread,
Mar 12, 2017, 9:15:50 PM3/12/17
to osgbull...@googlegroups.com
I believe Bullet has an interface to let an application access the vertices of a collision shape, if that’s what you want. You’ll need to look at the Bullet API to determine how to do that. It has been too many years for me to answer that question off the top of my head.

I bet you’ll need to transform the points by the current world matrix. You can get the world matrix from a Bullet CollisionObject with the getWorldTransform() function.
-Paul
--
You received this message because you are subscribed to the Google Groups "osgbullet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osgbullet-use...@googlegroups.com.
To post to this group, send email to osgbull...@googlegroups.com.
Visit this group at https://groups.google.com/group/osgbullet-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages