Game Development Community

Can a collision occur on invisible sprite?

by Tim Kin Chu · in Torque Game Builder · 10/17/2006 (9:56 pm) · 3 replies

Can a collision occur on invisible sprite?

I use sedebugOn(5) and see the collision detection on invisible sprite is off.

so, how to turn it on?

#1
10/18/2006 (12:01 am)
There is 2 state of a scene object - visible state and enabled state. First just turn on/off drawing of the sprite,
second add/remove the object from an update list of scenegraph.
If you sprite is just hidden collision can occur.
#2
10/19/2006 (1:36 am)
Hey. thank you.
but can you tell which function is doing this?
#3
10/19/2006 (3:40 pm)
It might be that since the sprite is set invisible, TGB is just not rendering its collision poly. Regardless, invisible objects should still collide.