What exactly does Convex Cast return?

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Re: What exactly does Convex Cast return?

Postby Marc » Sat Jul 07, 2012 9:47 pm

Julio Jerez wrote:Because it is a convex cast, it will find the first body along teh trajectory that his the casting shape.

Ah I meant with t the return value of the NewtonWorldRayFilterCallback because that's somehow the time traveled along the raycast. So I can't do an all body cast with convex cast as I can with the raycast because the convex cast only returns contacts for the first body.
Millenium Project Enterprises - Hobbyist Gamedev Group http://www.mpe-online.org
Walkover is now on Steam => http://store.steampowered.com/app/348700/
User avatar
Marc
 
Posts: 281
Joined: Sun Mar 14, 2004 4:07 pm
Location: Germany

Re: What exactly does Convex Cast return?

Postby Marc » Mon Jul 23, 2012 3:19 pm

Is there a way to get the type of contact from the result of a NewtonWorldConvexCast? With type I mean if the collision is with a face, edge or point.
Millenium Project Enterprises - Hobbyist Gamedev Group http://www.mpe-online.org
Walkover is now on Steam => http://store.steampowered.com/app/348700/
User avatar
Marc
 
Posts: 281
Joined: Sun Mar 14, 2004 4:07 pm
Location: Germany

Re: What exactly does Convex Cast return?

Postby Julio Jerez » Mon Jul 23, 2012 3:44 pm

that will be complicated because not all collision are made from polygonal shapes.
In fact most convex shapes come from the equation of a conic shape.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: What exactly does Convex Cast return?

Postby Marc » Mon Jul 23, 2012 3:53 pm

Hmm I see.

Is it tunneling safe? In the sense that when the start and destination position are very far apart and inbetween is something, will it hit it or are only start and destination position considered?
Millenium Project Enterprises - Hobbyist Gamedev Group http://www.mpe-online.org
Walkover is now on Steam => http://store.steampowered.com/app/348700/
User avatar
Marc
 
Posts: 281
Joined: Sun Mar 14, 2004 4:07 pm
Location: Germany

Previous

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest