Animatronic¶
This peripheral is provided by the Animatronic. It is an electronic puppet that can be positioned however needed.
The transition from one pose to a new one is fully automatic - and rusty.
Metadata¶
Peripheral | v1 |
Attach name | "animatronic" |
Attach side | only "top" |
Functions¶
setFace(face)
¶
Changes the face of the Animatronic.
Parameters
face
: string The new face. Must be either"normal"
,"happy"
,"question"
or"sad"
.
Throws
- Whenever the given string is not one of those types.
push()
¶
Pushes the stored rotation values to the Animatronic.
After pushing them, every rotation gets reset to 0
.
setHeadRot(x, y, z)
¶
Sets the head rotation.
Can only be set within the bounds -180° to 180° for x
, y
and z
.
Parameters
setBodyRot(x, y, z)
¶
Sets the body rotation.
Can only be set within the bounds -180° to 180° for y
and z
.
Info
x
can be set to any number within 360°.
Parameters
setLeftArmRot(x, y, z)
¶
Sets the left arm rotation.
Can only be set within the bounds -180° to 180° for x
, y
and z
.
Parameters
setRightArmRot(x, y, z)
¶
Sets the right arm rotation.
Can only be set within the bounds -180° to 180° for x
, y
and z
.
Parameters
getStoredHeadRot()
¶
Returns the current stored head rotation.
Returns 1. number
The x
rotation 2. number
The y
rotation 3. number
The z
rotation
getStoredBodyRot()
¶
Returns the current stored body rotation.
Returns 1. number
The x
rotation 2. number
The y
rotation 3. number
The z
rotation
getStoredLeftArmRot()
¶
Returns the current stored left arm rotation.
Returns 1. number
The x
rotation 2. number
The y
rotation 3. number
The z
rotation
getStoredRightArmRot()
¶
Returns the current stored right arm rotation.
Returns 1. number
The x
rotation 2. number
The y
rotation 3. number
The z
rotation
getAppliedHeadRot()
¶
Returns the rotation of the head.
Returns 1. number
The x
rotation 2. number
The y
rotation 3. number
The z
rotation
getAppliedBodyRot()
¶
Returns the rotation of the body.
Returns 1. number
The x
rotation 2. number
The y
rotation 3. number
The z
rotation
getAppliedLeftArmRot()
¶
Returns the rotation of the left arm.
Returns 1. number
The x
rotation 2. number
The y
rotation 3. number
The z
rotation
getAppliedRightArmRot()
¶
Returns the rotation of the right arm.
Returns 1. number
The x
rotation 2. number
The y
rotation 3. number
The z
rotation