Check collision with line

Barratator
Posts: 6
Joined: Thu Jun 09, 2011 3:39 pm

Check collision with line

Post by Barratator »

Hello,
can I check with Bullet, if a line (from x1/y1/z1 to x2/y2/z2) would collide with an rigidbody?


Thank you!
Bastian
User avatar
dphil
Posts: 237
Joined: Tue Jun 29, 2010 10:27 pm

Re: Check collision with line

Post by dphil »

Sure, with a raycast :). Ok, granted it's not quite the same as checking for collision with a specific rigid body. As far as I know there is no explicit "line" collision shape though.