Game Development Community

World Limit and detection zones on sprites

by Andy Hawkins · in Torque Game Builder · 08/15/2006 (4:06 pm) · 1 replies

I need to know where the sprites are being place in relation to the world limit callbacks.

Are the sprites being tested against the world limits from their edges or their centres?

When drawn, are the sprites being placed by their top corner or centres?

NB - in Oz we spell centre this way :)

#1
08/15/2006 (4:16 pm)
I believe sprite collision is detected from their edges, or their collision poly. When the sprites are drawn, they're placed by their centres'. Therefore, if you draw a sprite at 0,0 then the centre of the sprite will be at coords 0,0.

Centre spelt like that in England to :)