Sb forum speech.png DiscordLink.png FacebookLink.png RedditLink.png SteamLink.png TwitterLink.png YoutubeLink.png

Difference between revisions of "Hinges"

From Starbase wiki
Jump to navigation Jump to search
m
Line 29: Line 29:
|-
|-
! '''DoorOpenState'''
! '''DoorOpenState'''
| Setting values to this field will move the joint target as defined by the properties and other fields of the device.
| Input field for requested door state. 0 is closed, 1 is fully open.
|  
| [0,1]
|-
|-
! '''DoorCurrentState'''
! '''DoorCurrentState'''
| This field will get updated to the latest state that the joint target is in, as defined by the  properties and other fields of the device. The value answer basically answers the question 'What input would the device need to move to it's current position'
| Reports the current position of the door, on the same scale as ''DoorOpenState''
|  
| [0,1]
|-
|-
! '''EndRotation / EndPosition'''
! '''EndRotation / EndPosition'''
| How "open" the joint will be is relative to '''RelativeDestinationRotation''' when it receives input identical or above '''FullOpenInput'''. Is measured in percents(%) 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.
|  
|  
|-
|-
!'''StartRotation / StartPosition'''
!'''StartRotation / StartPosition'''
| How "closed" the joint will be is relative to '''RelativeOriginalRotation''' when it receives input identical or below '''FullCloseInput'''. Is measured in percents(%) 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:59, 13 September 2019

Русский

Summary



Starbase devices hinges.png

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.

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]
EndRotation / 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.
StartRotation / 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. This cannot exceed the velocity property defined in the type, and can't be negative.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.