Dynamic¶
Dynamic is the base class where all objects with a position, rotation and scale derive from.
Inherits: Instance
Properties¶
- Position:
Vector3 - Rotation:
Vector3 - Size:
Vector3 - LocalPosition:
Vector3 - LocalRotation:
Vector3 - LocalSize:
Vector3 - Quaternion:
Quaternion - LocalQuaternion:
Quaternion - Locked:
boolean - Forward:
Vector3 - Right:
Vector3 - Up:
Vector3
Methods¶
LookAt(target: any) → nil¶
Orients the object to look at a target with a specified up vector.
LookAt(target: any, up: Vector3) → nil¶
Orients the object to look at a target with a specified up vector.
Translate(translation: Vector3) → nil¶
Moves the transform in the direction and distance of translation.
RotateAround(point: Vector3, axis: Vector3, angle: number) → nil¶
Rotates the object around a point by the specified Euler angles.
Rotate(eulerAngles: Vector3) → nil¶
Rotates the object by the specified Euler angles.
GetBounds() → Bounds¶
Gets the bounding box of the object.