3d objects
by Aditya Kulkarni · in Torque Game Builder · 06/14/2010 (2:24 am) · 2 replies
for 3d objects, setShapeAngularVelocity(x/y/z)
But isn't this a 2d engine? How then does the Z axis figure in this?
But isn't this a 2d engine? How then does the Z axis figure in this?
#2
Thanks Melv.
06/14/2010 (5:13 am)
Got it. So even in setShapeOffset(x/y/z), z means the 'inner' or 'outer' layer.Thanks Melv.
Employee Melv May
Notice that the command you mention is angular-velocity (rotation), not linear-velocity (translation). You cannot move the 3D shape in the Z-Axis. All "depth" is based upon layers so the 3D rendered shape exists at X,Y,Layer.
In reality, there is not depth, nor is there any depth-checking. You can place two 3D shapes overlapping each other, one in a layer "behind" the other and they will never interact during rendering e.g. they'll never intersect.
Hope this helps.