How can i off the Player Collision
by John Peter · in Torque 3D Beginner · 07/01/2010 (3:49 am) · 4 replies
Hi All
How Can i Make a Player or AI Player Still move even if it hits Something?
I have an AI Player. When the Player Hits AI Player the Player should enters the AI Player and go(like Ghost).
But the Player can't enter the AI Player. I think collision is preventing the Player from entering the AI Player.
How can i off the Collision and make the player should enter the AI Player.
Thannks in advance
John Peter
How Can i Make a Player or AI Player Still move even if it hits Something?
I have an AI Player. When the Player Hits AI Player the Player should enters the AI Player and go(like Ghost).
But the Player can't enter the AI Player. I think collision is preventing the Player from entering the AI Player.
How can i off the Collision and make the player should enter the AI Player.
Thannks in advance
John Peter
About the author
#2
If you mean as in to allow the player to pass through the AI then that would most likely need a small source code change to disable the default collision response in such a situation.
07/01/2010 (10:30 am)
Quote:How can i off the Collision and make the player should enter the AI Player.Do you mean as in enter the body of and control the AI that was just collided with? In that case you would need to add some custom scripting to the PlayerData/Armor onCollision() callback.
If you mean as in to allow the player to pass through the AI then that would most likely need a small source code change to disable the default collision response in such a situation.
#3
Thank you For Your reply.
I want allow the Player to pass through the AI Only .
$player.setCollisionLayers("");
is not working.
I have remove the following code in Player.cs
function Armor::onCollision(%this, %obj, %col)
But Still the player cant pass through the AI Player.
How can i disable the Default Collision through scripting.
07/02/2010 (4:16 am)
@Glenn and Michael Thank you For Your reply.
I want allow the Player to pass through the AI Only .
$player.setCollisionLayers("");
is not working.
I have remove the following code in Player.cs
function Armor::onCollision(%this, %obj, %col)
But Still the player cant pass through the AI Player.
How can i disable the Default Collision through scripting.
#4
Could any one help me to disable the default collision through scripting.
When i enter the AIPlayer i think bounding box is preventing. ( i am new to torque 3d. so i don't know correctly).
How can i make the player can enter the AI Player.
07/05/2010 (4:11 am)
Could any one help me to disable the default collision through scripting.
When i enter the AIPlayer i think bounding box is preventing. ( i am new to torque 3d. so i don't know correctly).
How can i make the player can enter the AI Player.
Torque Owner Glenn Thomas
$player.setCollisionLayers("");So inside the setCollisionLayers, you would remove the layer number that the AI player is on so they don't collide then just put it back in once the AI player leaves the trigger. You can set the blend alpha there too.
Just my thoughts on how I would go about it, let me know if this works!