Content deleted Content added
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: | 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. |
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. |
|||
If powered, it can adjust its orientation to aim at an object it is configured to seek, to choose what to target, you must simply enter text in the option <code>Seek</code>. If seek is blank it will not aim at anything. |
|||
⚫ | |||
If powered, it can adjust its orientation to aim at an object it is configured to aim at, to choose what to target, you must simply enter text in the option <code>Seek</code>. If seek is blank it will not aim at anything. |
|||
⚫ | |||
=== Player targeting === |
=== Player targeting === |
||
Line 20: | Line 21: | ||
Writing "AllExcept" will target every player expect those written after. Example: "AllExcept Player2". |
Writing "AllExcept" will target every player expect those written after. Example: "AllExcept Player2". |
||
=== |
=== Part targeting === |
||
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". |
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". |
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 === |
=== Other === |