Switchable Collision
by Jeff Trier · in Torque Game Engine · 05/11/2004 (5:23 am) · 2 replies
Sorry to make a post so soon after another one...
Is there a way to have an object pass through or collide into other objects based on a variable? For instance, I am working on a squad based game and I want the squad members to be able to pass through each other, but not through anyone else. I also want my projectiles fired from that squads players to pass through other players of that squad, but hit everything else.
I have been doing a lot of digging, and I can't seem to figure out a way to do this from script.
Thanks all,
-Jeff
Is there a way to have an object pass through or collide into other objects based on a variable? For instance, I am working on a squad based game and I want the squad members to be able to pass through each other, but not through anyone else. I also want my projectiles fired from that squads players to pass through other players of that squad, but hit everything else.
I have been doing a lot of digging, and I can't seem to figure out a way to do this from script.
Thanks all,
-Jeff
About the author
Originally a Classical/Metal musician, I've always been attracted to anything involving computers, including: Networking, PC Building and Repair, software design and coding. I've been involved with game design and development for over 10 years.
Torque Owner John Vanderbeck
VanderGames