Game Development Community

Moving objects the right way?

by Rex Hiebert · in Torque 3D Professional · 11/12/2009 (5:31 pm) · 0 replies

I am working on a puzzle game where the player is a disembodied camera (no control object, RTS mode) who selects and moves blocks. Right now the blocks are staticShape objects. I have the selection working and can move the blocks via a setTranform call but I need a little more feedback. How can I tell if the object has been moved to a position that collides with something (TSStatics or other StaticShapes)? Is there a move method that allows that?

I also need the collisions to trigger when I nudge the blocks a little (move or rotate). I'm guessing it is the same problem either way.

Should these be Item objects instead?