Transformable::SetWorldPosition
Defined in:
Sets the world-space position.
C4Types.h
Prototype
void SetWorldPosition(const Point3D& position);
Parameters
position |
The new world-space position. |
Description
The SetWorldPosition
function sets the world-space position to that given by the position
parameter and recalculates the inverse transform from world space to object space. The upper-left 3 × 3 portion of the 4D transform is not affected.
WARNING. The
SetWorldPosition
function is normally called only by internal components of the engine during routine update procedures. This function should not be called by external code to directly set the world position of an object.
See Also
Transformable::GetWorldPosition