Game Development Community

Torque X 2d and XNA coordinates

by Gerald Quick · in Torque X 2D · 09/16/2009 (10:38 pm) · 2 replies

Is there a way to convert from Torque X 2d coordinates to XNA coordinates for object positions? The reason I'm askings is because I am checking on intersecting rectangles for some objects and it is not working. The go right through each other. I noticed that the coordinates are not what I expected when accessing them through code in XNA. Thanks in advance.

-Gerald

#1
09/21/2009 (7:38 pm)
Hey Gerald,

Is there any reason you can't use Torque's built-in collision detection? It might prove easier in the long run.
#2
09/21/2009 (11:08 pm)
Thanks for the reply, but no, it will not help for what I am doing. You can destroy my terrain, and I would constantly have to change the collision poly not to mention break up the collision polys due to the odd shapes the terrain can make after being destroyed.

-Gerald