Game Development Community

Ghost characters (not network ghost)

by Guimo · in Torque Game Engine · 04/16/2008 (5:02 pm) · 2 replies

Hi all,
I was wondering how may I create a ghost character. I mean, I want a character that may bypass some objects like walls or even pass right through other objects but still be harmed by weapon hits or be picked using a ray.

Has anybody done this before?
Guimo

#1
04/16/2008 (7:50 pm)
You can create a new object type for the Ghost, that way you include/exclude that type from what ever collision or other checks you wish to do.

See objectTypes.h for where the object types are defined, if you look at the usages of PlayerObjectType, that should give you a good indication of where and how to use your GhostObjectType...
#2
04/16/2008 (8:49 pm)
MMMMMM you are right... lot of work but may work. Nice idea.

Luck!
Guimo