mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-27 23:47:38 +01:00
fac1ebcd3f
- Lua documentation has been added for all peripherals except the train station (not looking forward to writing that one) - This documentation will be added to the GitHub wiki pages
742 B
742 B
Method | Description |
---|---|
setTargetSpeed(speed) |
Sets the target rotation speed |
getTargetSpeed() |
Gets the current target rotation speed |
setTargetSpeed(speed)
Sets the rotation speed controller's target speed.
Parameters
- speed:
number
Target speed. Must be an integer within range of [-256..256]. Values outside of this range will be clamped.
getTargetSpeed()
Gets the rotation speed controller's current target speed.
Returns
number
Current target rotation speed.