Difference between revisions of "Hinges"
m (→Device fields: "EndRotation" and "StartRotation" fields are called "EndAngle" and "StartAngle" in game, corrected.) |
|||
Line 47: | Line 47: | ||
| [0,1] | | [0,1] | ||
|- | |- | ||
! ''' | ! '''EndAngle / EndPosition''' | ||
| The rotation/position the joint should be at when ''DoorOpenState'' is 1. Is measured in percents(%) relative to the maximum possible open state for prismatic joints, and degrees in hinge joints. | | The rotation/position the joint should be at when ''DoorOpenState'' is 1. Is measured in percents(%) relative to the maximum possible open state for prismatic joints, and degrees in hinge joints. | ||
| | | | ||
|- | |- | ||
!''' | !'''StartAngle / StartPosition''' | ||
| The rotation/position the joint should be at when ''DoorOpenState'' is 0. Is measured in percents(%) relative to the maximum possible open state for prismatic joints, and degrees in hinge joints. | | The rotation/position the joint should be at when ''DoorOpenState'' is 0. Is measured in percents(%) relative to the maximum possible open state for prismatic joints, and degrees in hinge joints. | ||
| | | |
Revision as of 13:25, 28 February 2021
Summary
Hinges are devices used for creating turning, sliding and opening mechanisms such as doors, hatches and sliding doors.
Basic information
Hinges are commonly interacted with by controlling it via a button or YOLOL script.
A hinge's DoorOpenState-field can be connected to a button.
The button can be then used to remotely open or close the hinge.
There are currently 16 different hinges and they all share the same operation being either a fold/unfold or a sliding hinge. The majority of the variety is taken up by fold/unfolding hinges. A major issue with hinges when making ships is that most of them do not pass on electricity or signals. Hinges are also said to be weak to pressure, so one shouldn't mount them to thrusters.
Device fields
To learn more about how to use fields, consult these wiki pages:
YOLOL field | Description | Range |
---|---|---|
DoorOpenState | Input field for requested door state. 0 is closed, 1 is fully open. | [0,1] |
DoorCurrentState | Reports the current position of the door, on the same scale as DoorOpenState | [0,1] |
EndAngle / EndPosition | The rotation/position the joint should be at when DoorOpenState is 1. Is measured in percents(%) relative to the maximum possible open state for prismatic joints, and degrees in hinge joints. | |
StartAngle / StartPosition | The rotation/position the joint should be at when DoorOpenState is 0. Is measured in percents(%) relative to the maximum possible open state for prismatic joints, and degrees in hinge joints. | |
TargetVelocity | The maximum velocity the joint will reach. Different joint devices have different velocity limits, and might not be able to reach the configured velocity. |