Game Development Community

t2dPath and path collision

by Steven Sheffey · in Torque Game Builder · 12/20/2009 (3:45 am) · 2 replies

Hey all, I was just wondering if the path created using t2dPath can have collison. In other words:
Start Node ------------------> End Node. Is there a way to tell that line to have collision?

Thanks in advance!

Steven

#1
12/20/2009 (6:21 am)
TGB's collision doesn't support concave collision hulls, so a t2dPath would most likely not work at all for what you are trying to do, as a t2dPath is rarely done in a way that would make it a convex shape.

If you need a specific collision setup, I would suggest using a collection of convex objects, each with their own collision hull, which combined creates the form you are going for.
#2
12/20/2009 (3:56 pm)
Thanks for the info Dave. Ya I have it set up right now to use a chain of objects, but was hoping that using Paths instead would give me better performance. Guess I'll stick with what I got. Thanks Dave!