Game Development Community

How do I know if a ShapeBase is contained in an Interior?

by CdnGater · in Torque Game Engine · 08/20/2004 (11:14 am) · 1 replies

The topic says it all. But I will repeat it here anyway.

How do I know if a ShapeBase is contained in an Interior?

I don't see a current way of finding this out, and I thought there was a thread someplace that asked the same question. But for the life of me and after 32 pages of thread topics I can't find the answer.

Edit: I need to know for C++ code not script. Is there some variable thats already set, I just dont see?

Thanks

#1
08/20/2004 (9:02 pm)
Best way is something like Convex::updateWorkingList() where you pass in the bounds of the ShapeBase and a mask specifying InteriorObjectType in order to get a list of all of the Interior's that overlap the bounds of the ShapeBase in question.