Game Development Community

Collision Detection On Bounded Object

by Ohio University Student (#0003) · in General Discussion · 03/14/2007 (1:25 pm) · 3 replies

I have a character of .dts type with a bounding box. I would like to echo a message when onCollision with a player or avatar on a game we are currently developing. At this point I cannot detect any collision even when the player or avatar run to the character.

About the author

Recent Threads


#1
03/14/2007 (1:40 pm)
@Ohio, did you make the DTS yourself? If so, did you create a collision box for it? Did you also name the collision box "Col1" (or Col01?)?

Is your onCollision function written correctly? (ie; if the object is of type 'player' or named 'player' or has a superclass of 'player', itd be: function player::onCollision(...))
#2
03/14/2007 (4:21 pm)
I did not create the DTS myself. How do I create a collision box for it? Is the naming of the box as Col1 or Col01 important or I can just give it any name? I am new on this your help is greatly appreciated. The onCollision function works fine with other objects of the same type. Those objects don't have a bounding box I guess thats why they work.
#3
03/14/2007 (6:56 pm)
Steve Adamson has a really nice tutorial video for creating DTS objects in Maya with collisions, it explains most of the collision requirements and, aside from the Maya portions, is pretty generic to torque DTS object creation -- outside of that, I'm a developer, not a modeler, so I can't really help much more then I already have ...