Game Development Community

Doing collisions with SceneObjects

by Brian Uptagrafft · in Torque Game Engine · 04/07/2006 (2:07 pm) · 1 replies

Hi all,

I'm pretty new to the engine and have been looking around, just trying to get a feel for things. I'm thinking that for one of the pieces of the game I'm working on I'm going to need to inherit SceneObject (or maybe GameObject), but I had a couple of questions and was hoping someone could get me pointed in the right direction.

a) How does one add collision information into a given object? I see methods like buildConvex and such, and the bounding box, but how does one get the data into these things? The Box3d object has two intersect methods, am I correct in understanding that if I pass a box to these methods, that the original box would grow to include the box I passed in?

b) Say I get it so my new object collides with other stuff, where would I get information regarding the collision?

Thanks!