Game Development Community

No collision!

by Maximillian Brewer · in Torque Game Engine · 07/14/2009 (1:46 am) · 1 replies

Hi,

I am using the door from the Props Pack made by Apparactus in a small level of mine. Because my idea is that you get a key to unlock the door, I though I could do a collision thing with the key like in the getting started tutorial, and then the same thing with the door, except instead of making it count, make it check if the key has been collected, and if so, the door is deleted (leaving the door frame) and if not, nothing happens. I have working scripts for it, but I have an issue with the door.

The door from the props pack doesn't have a collision mesh (at least I don't think so...) because when I add it as a Shape (not a staticShape because it has itemData and needs to have an onCollision) and run into it without the key, I just walk through it as if it has no collision mesh.

Is there a way to give a dts object without a collision mesh, a collision mesh? Like how staticShapes have added rectangular collision meshes whether they have a real one or not.

From Max

Ps. I was goingt to just open it up in milkShape or a 3D modelling program, but the Props Pack didn't include the source...mind you I did buy it straight from Apparatus when he left Torque, so mayby it was supposed to have the source, but just didn't include it accidently?

#1
07/15/2009 (1:23 pm)
If I were you I would try to just recreate the door as close as possible with the required Collision Mesh that way you have the source needed to create and modify the door to any other needs you may have.