Game Development Community

OnCollision

by Howard Dortch · in Torque Game Engine · 09/26/2005 (1:15 pm) · 2 replies

I have a dts object (small box) low to the ground. Collision mesh on it works fine. When my player runs on top of the box the player::onCollision() in script does not get called. If the player is standing on the box and jumps the collision gets called. So either the collision mesh for the player for the run/root anim does not penetrate the object and cause a collision but the jump/land does which would make sense or the box collision mesh is to big/small to make it work.
How can I modify the box collision mesh to make the player::onCollision get called?

#1
09/26/2005 (3:03 pm)
How can I modify the box collision mesh to make the player::onCollision get called?

You cant, thats how its ment to work. Your still in contact when running on it.
Why do you need that?
#2
10/02/2005 (10:45 pm)
It's not a model issue - it's properly calling when new collisions happen. I suggest tweaking C++ code.