Is there a handy way to temporarily disable collision detection on something (either the world or the robot/camera) after having added it? My situation is that I have a robot with a bunch of CollisionResponseAnimators attached, roving around in a quake map. If I want to move (teleport) the robot to a different location by calling setPosition, the collision detection places the robot somewhere else if there's a wall in the way.
Thanks,
-- Matt
Temporarily disable collision detection
-
- Posts: 19
- Joined: Fri May 13, 2005 7:20 am
- Location: New York, NY
You can put a variable when you are telporting and in your collison put
This should work. If it doesnt jut post again and we'll try to help.
Code: Select all
if(teleporting == true)
{
//set up collision...
}
-
- Posts: 19
- Joined: Fri May 13, 2005 7:20 am
- Location: New York, NY
Hmm... I want to be able to set up collision detection, but later turn off the collision detection if I need to teleport. Your suggestion, if I understand it correctly, would work if I only needed to teleport at the outset, then could turn on and leave on collision detection forever after that.
-- Matt
-- Matt