Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Sep 12, 2012 8:10 am 
Offline

Joined: Tue Sep 11, 2012 12:26 pm
Posts: 1
I'm new to Bullet Physics and I'm trying to understand the following function:

Code:
virtual void btBroadphaseInterface::rayTest(
   const btVector3 & rayFrom,
   const btVector3 & rayTo,
   btBroadphaseRayCallback & rayCallback,
   const btVector3 & aabbMin = btVector3(0, 0, 0),
   const btVector3 & aabbMax = btVector3(0, 0, 0)
)


How are the last two parameters, aabbMin and aabbMax, used?


Top
 Profile  
 
PostPosted: Fri Sep 14, 2012 5:56 pm 
Offline
Site Admin
User avatar

Joined: Sun Jun 26, 2005 6:43 pm
Posts: 3744
Location: California, USA
The rayTest can optionally perform a swept AABB test (rather than just sweeping a point).
This can be useful to accelerate linearly swept volume queries, for example the btCollisionWorld::convexSweepTest uses this interface.

Note that most users don't need to worry about this internal interface, unless you (re) implement your own broadphase and you want to support swept queries.


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

All times are UTC


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 0 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