C4 Engine
C4 Engine API Documentation

Renderable::SetTransformable

Defined in:  C4Renderable.h
Sets a pointer to the Transformable object.
Prototype

void SetTransformable(const Transformable *transform);

Parameters
transform A pointer to a Transformable object. Specifying nullptr indicates that the transformation from object space to world space is the identity transform.
Description
The SetTransformable function sets a pointer to the Transformable object that determines the transformation from object space to world space. By default, a renderable object has no Transformable object assigned to it, meaning that the object's vertices exist in world space.
Special Considerations
The 3 × 3 rotation portion of the object-to-world transformation contained within the Transformable object should be orthogonal and should have a determinant of +1. That is, it must represent only a rotation and contain no scale, skew, or mirroring of any kind. Failure to meet this requirement will result in incorrect lighting for the renderable object.
See Also

Renderable::GetTransformable