Game Development Community

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

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.


#1
05/11/2004 (5:30 am)
I don't think you can withthout modification, but this modification would be pretty simple. Just add a new field to the apprpriate class and then in the collision routine drop out if its set.
#2
05/14/2004 (8:29 am)
Thanks John. :)