OnCollision need help!
by John Doggett · in Torque Game Engine · 08/20/2004 (12:52 pm) · 1 replies
Hello everyone!
After a lot of trial and error (with some help from "3D Gaming All In One" and the tutorials, I have managed to export the complicated model temple I wrote about in previous posts into TGE.
I had to do it a piece at a time, but now 3DSmax will create "atomic" shapes for me.
Now I have made a simple collision mesh from two boxes. (Box01 is a simple bounding box wrapping a simple wall model. Box02 intersects and subtracts (carves) Box01 to create no collision doorway.)
So far, so good. Following the online tutorial (as best one may, details of Collision-1 and Col-1 et al are scant, IMO) I got everything linked and exported ok.
I need a lot of very specific help setting this up to cause the player (standard TGE game guy) to bounce off the wall everywhere but where I carved out the opening for the doorway.
How can I make this work? Will it work only if a server is running?
Has anyone got a sample of the OnCollision code that will do this?
Any and all information will be greatly appreciated.
Jay
After a lot of trial and error (with some help from "3D Gaming All In One" and the tutorials, I have managed to export the complicated model temple I wrote about in previous posts into TGE.
I had to do it a piece at a time, but now 3DSmax will create "atomic" shapes for me.
Now I have made a simple collision mesh from two boxes. (Box01 is a simple bounding box wrapping a simple wall model. Box02 intersects and subtracts (carves) Box01 to create no collision doorway.)
So far, so good. Following the online tutorial (as best one may, details of Collision-1 and Col-1 et al are scant, IMO) I got everything linked and exported ok.
I need a lot of very specific help setting this up to cause the player (standard TGE game guy) to bounce off the wall everywhere but where I carved out the opening for the doorway.
How can I make this work? Will it work only if a server is running?
Has anyone got a sample of the OnCollision code that will do this?
Any and all information will be greatly appreciated.
Jay
About the author
Torque Owner John Doggett
TGE tutorial is incomplete:
http://www.garagegames.com/mg/forums/result.thread.php?qt=20055#161673