Collision Detection Code
by Micheal Lanham · in Torque Game Engine · 08/14/2002 (9:51 pm) · 5 replies
I am running the deathcar demo everything runs quite well but when I insert an AI player into the mission. The AI player cannot be shot at, the bullets just pass right through. I thought this may be the collision detection code script side but the collision detection scripts are not even recieving callbacks. I have modified the projectile code directly to notify me of all collisions but still nothing. It is like the AI vehicle is not even there. However, the player vehicle and AI vehicle may still collide with one another. Any thoughts???
#2
$bot=aiAddPlayer("Frodo");
Hope this helps.
Mike
08/15/2002 (8:59 am)
I am inserting the AIPlayer using the console and adding it by $bot=aiAddPlayer("Frodo");
Hope this helps.
Mike
#4
08/15/2002 (9:58 am)
Without looking at your code, if the vehicles have collision, it would seem that your code reporting back projectile collisions is faulty.
#5
I have double checked all the collosion masks and everything seems to alright. Any other ideas?
Thanx
08/15/2002 (12:03 pm)
The code reports back anything that is of a ShapeBaseObjectType since all objects are derived from this is seems to me that it must not even be reaching this collosion code for some reason. Is there a way to hide objects in script so that it does not even detect for a collosion?I have double checked all the collosion masks and everything seems to alright. Any other ideas?
Thanx
Torque Owner Desmond Fletcher
fletcher