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?
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?
About the author
Torque Owner CSMP
MP Studios