Game Development Community

3D Collisions?

by Austin Riedhammer · in Torque Game Builder · 05/15/2006 (12:51 pm) · 4 replies

I know TGB doesn't support 3D collision detection, but can you do 2D detection with 3D objects? Say, only the visible elements of an object on a 2D plane? Or is there just no detection supported for these objects at all?

#1
05/15/2006 (1:26 pm)
You should be able to .setCollisionPolyCustom() on a t2dShape3D. It can be any convex 2D collision polygon.
#2
05/15/2006 (1:36 pm)
Ah, so it's not really effective for objects with animations though, is it?
#3
05/15/2006 (1:50 pm)
It depends on the animation. Plus, for different animations, you could modify the collision poly. But it really depends on what you are requiring. If you are making a fighting game with 3D shapes, matching collision polys might be annoying. I'm going to be playing with this myself here soon.
#4
05/15/2006 (1:54 pm)
Yeah, I was planning on a fighting platformer, and a human character doesn't exactly have a convex outline. But I guess there are ways around that. I guess I'll have to put some thought into it, thanks for the info, though.