Members
-
The negative X Axis vector
-
The negative Y Axis vector
-
The negative Z Axis vector
-
The X Axis vector
-
The Y Axis vector
-
The Z Axis vector
-
rotation RS.Quaternion
-
The rotation component of this Transform
-
The scale component of this transform
-
The translation component of this Transform
-
The World to Object space Matrix represented by this Transform
-
The X axis of this transform
-
The Y axis of this transform
-
The Z axis of this transform
Methods
-
clone ()RS.Transform
-
returns a copy of this Transform.
Returns:
Type Description RS.Transform -
Scales the transform.
Name Type Description value
Vector3 The amount to scale by
-
Performs an Euler rotation on the transform in ZYX order.
Name Type Description x
Number X rotation in radians.
y
Number Y rotation in radians.
z
Number Z rotation in radians.
-
Rotates the transform about the given axis by the given angle in radians. If in_object_space is set to
true
, then the axis will be transformed into object space first.Name Type Default Description axis
RS.Vector3 the axis to rotate around.
angle
Number the amount to rotate by in radians.
in_object_space
Boolean true optional if
true
then the axis is in object space, otherwise world. -
Rotates the transform around a given world space point
Name Type Description point
RS.Vector3 the point to rotate around.
dx
Number the amount to rotate around the transforms X axis by in radians.
dy
Number the amount to rotate around the transforms Y axis by in radians.
dz
Number the amount to rotate around the transforms Z axis by in radians.
-
Sets an Euler rotation on the transform in ZYX order.
Name Type Description x
Number X rotation in radians.
y
Number Y rotation in radians.
z
Number Z rotation in radians.
-
Sets the rotation of the transform about the given world space axis by the given angle in radians.
Name Type Description axis
RS.Vector3 the axis to rotate around.
angle
Number the amount to rotate by in radians.
-
Translates the transform by the given amount in either world space or object space.
Name Type Default Description dx
Number the amount to translate in X.
dy
Number the amount to translate in Y.
dz
Number the amount to translate in Z.
in_object_space
Boolean true optional if
true
then translates in object space, otherwise world.