create
Creates a transform component and associates it with the given entity. If this component already exists on the entity, it is first destroyed as if destroy was called.
Parameters
entity
An Entity to associate a transform component to.
parent
The Instance of the parent transform, or 0 if no parent.
Creates a transform component, initialized with localTransform (relative to the parent).
Parameters
entity
An Entity to associate a transform component to.
parent
The Instance of the parent transform, or 0 if no parent.
localTransform
The transform to initialize the transform component with.
Double-precision create.