Game Development Community

Disable collision causing camera shakes

by Cinder Games · in Torque Game Engine · 10/25/2005 (5:54 am) · 4 replies

Trying to set up a way to disable collision on objects... this console method, though simple does just that. However, when my player is passing thru the object, the camera shakes/twitches..... also projectiles are still hitting the object.. but no damage is being incurred... what am i missing?


ConsoleMethod( ShapeBase, disableCollision, void, 2, 2, "")
{
   object->disableCollision();
}

#1
10/25/2005 (9:12 pm)
I don't believe disableCollision() will also disable castray's (which is what the camera uses for its "collision"). You may want to look at how/where disableCollision() is skipping out of buildConvex() and do the same in castRay().
#2
10/26/2005 (3:06 am)
I see, so what's going on is the camera is doing a cast ray, and detecting something so it's attempting to move out of the way or something. I'll look more into the cast ray processes.
#3
10/26/2005 (3:28 am)
I would be really interested in seeing what you get since I have working collisions but the shaky camera problem as well.
#4
10/26/2005 (3:43 am)
Hmm after looking at it closer.. i'm noticing that the player model seems to be "dragging" thru the other object... the running animation slows way down while passing thru the other model... so something else may be going on here.