Transform

*

Constructors

this
this(Entity parent)

*

this
this(Entity parent, Transform transform)

*

Members

Functions

getLocation
const(Vector3F) getLocation()

* Returns object location in relative space.

getModelMatrix
const(Matrix4F) getModelMatrix()

* Returns model matrix for the object representation.

getParent
Entity getParent()

*

getPivot
const(Vector3F) getPivot()

*

getRotation
const(Vector3F) getRotation()

* Returns object rotation in relative space.

getScale
const(Vector3F) getScale()

* Returns object scale in relative space.

rotatePitch
Transform rotatePitch(float angle)

* Rotate object specifying the rotation angle for pitch axis. * Returns reference to this so it can be used in a stream.

rotateRoll
Transform rotateRoll(float angle)

* Rotate object specifying the rotation angle for roll axis. * Returns reference to this so it can be used in a stream.

rotateYaw
Transform rotateYaw(float angle)

* Rotate object specifying the rotation angle for yaw axis. * Returns reference to this so it can be used in a stream.

setLocation
Transform setLocation(float x, float y, float z)

* Translate location using x, y and z scalars as coordinates. * Location is done in space.

setLocation
Transform setLocation(Vector3F location)

* Translate location using a vector with x, y and z coordinates. * Location is done in space. * Returns reference to this so it can be used in a stream.

setLocationX
Transform setLocationX(float value)

* Translate x-coordinate location. * Location is done in space. * Returns reference to this so it can be used in a stream.

setLocationY
Transform setLocationY(float value)

* Translate y-coordinate location. * Location is done in space. * Returns reference to this so it can be used in a stream.

setLocationZ
Transform setLocationZ(float value)

* Translate z-coordinate location. * Location is done in space. * Returns reference to this so it can be used in a stream.

setPivot
Transform setPivot(float x, float y, float z)

*

setPivot
Transform setPivot(Vector3F pivot)

* * Returns reference to this so it can be used in a stream.

setPivotX
Transform setPivotX(float value)

* * Returns reference to this so it can be used in a stream.

setPivotY
Transform setPivotY(float value)

* * Returns reference to this so it can be used in a stream.

setPivotZ
Transform setPivotZ(float value)

* * Returns reference to this so it can be used in a stream.

setScale
Transform setScale(float value)

* Scale object using same value for x, y and z coordinates. * Returns reference to this so it can be used in a stream.

setScale
Transform setScale(float x, float y, float z)

* Scale object using x, y and z scalars for coordinates. * Returns reference to this so it can be used in a stream.

setScale
Transform setScale(Vector3F scale)

* Scale object using a vector with x, y and z scalars for coordinates. * Returns reference to this so it can be used in a stream.

setScaleX
Transform setScaleX(float value)

* Scale object on x axis. * Returns reference to this so it can be used in a stream.

setScaleY
Transform setScaleY(float value)

* Scale object on y axis. * Returns reference to this so it can be used in a stream.

setScaleZ
Transform setScaleZ(float value)

* Scale object on z axis. * Returns reference to this so it can be used in a stream.

Meta