RayClass

sandeep_slash
Posts: 48
Joined: Thu Jul 10, 2008 6:36 pm

RayClass

Post by sandeep_slash »

I'm wondering if there is an ODE equivalent Ray class in Bullet.....

Thanks.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: RayClass

Post by Erwin Coumans »

You can use the btConvexHullShape and add 2 vertices for start/end. It is best not to use this for moving dynamic objects.

Note that for a raycast, Bullet provides btCollisionWorld::rayTest query.
Hope this helps,
Erwin