How do I make a Player or AIPlayer still move even if it hits something?
by Bullitt Sesariza · in Torque Game Engine · 07/30/2009 (3:06 am) · 2 replies
Hi guys, I'm using the old TGE 1.5.2. and I want to tweak some physics on Player / AIPlayer. I want to know where is the code responsible to make the Player / AIPlayer stop when it hit something? I want to disable it but not the Collision Detection. In short, I want to make a player that can pass through wall like Casper the Ghost but can still notify the Collision Detection if it hits something. Thanks in advance.
#2
07/30/2009 (7:25 pm)
Err... I still need to check for collision but not the physics. I.e. if they collide to one another, the collision check can still trigger and call the onCollision callback although they'll pass through each other. So that method is no-no for me.
Torque Owner Ivan Mandzhukov
Liman3D
I think you can use in Torquescript setCollisionTimeout().
In c++ the are methods dissableCollision() and enableCollision();
Another decision is to exclude geometry from the working list,but it is far more complicated...