Changed some wording, added a section about a practical use for its stabilization feature as well as another section dedicated about programming and fixed a broken link
(Changed some wording, added a section about a practical use for its stabilization feature as well as another section dedicated about programming and fixed a broken link) |
|||
Line 10:
The '''Gyro''' is a part that is commonly used as a targeting system for contraptions such a [[Building_A_Base#Missiles|missiles]], it will orient the front of itself towards a chosen target rotating anything it is welded to in the process. The front of the gyro is represented by a white circle.
<br><br><br>
In its default state (Unpowered), it will directly aim upwards unless the option <code>DisabledWhenUnpowered</code> is on, in which it will simply stop aiming. This feature can be used to stabilize structures that rely on physics to float, for example, a structure built with [[Balloon|Balloons]] which will inevitably tip over to its heavier side without a gyro.
The Gyro has
▲The Gyro has a option called <code>TriggerWhenSeeked</code>,when activated it will send a trigger signal every second as long as it has a target.
=== Player targeting ===
Line 20 ⟶ 21:
Writing "AllExcept" will target every player expect those written after. Example: "AllExcept Player2".
===
To use a Gyro to target a part, you must first enter "Radar" then you need to write the name of the part. Example: "Radar PowerCell".
You can also radar ore deposits, simply by putting the name of the ore with "Deposit" attached. Example: "Radar IronDeposit".
=== Programming ===
[[Microcontroller|Microcontrollers]] can use the gyro to target an arbitrary location expressed as a Vector3 using Gyro:PointAt().
=== Other ===
|