Game Development Community

Ignore collision by class?

by Nicolai Dutka · in Torque Game Builder · 04/02/2008 (4:12 pm) · 2 replies

I am wondering if I can tell objects to ignore collisions from a specific script object class?

I have 3 main types of objects in my game, so I gave each type a class:

player
enemy
pickup

I want to tell the player it can collide with all 3 classes.
I want the enemy to collide only with the player class and not the pickup class or other enemy class objects.
I want the pickup class to collide only with the player class and not the enemy class or other pickup class objects.

What would be the best way to do this?

#1
04/02/2008 (5:04 pm)
The way I did it in the Platformer Starter Kit was to use graph groups. I did it a bit more elaborately than that, but that is the basic idea.
#2
04/02/2008 (9:32 pm)
I completely didn't even see the "Collision Layers" chart.... my bad....