Lever
A class in Root.Township, the global namespace.
A physical lever Trigger: reads the handle's X rotation each physics step and is on while it sits inside its angle range.
- Listed in Global namespace: I to L
- Inherits or implements
Trigger - Documented in Buttons and levers
Constructors
| Member | What it is |
|---|---|
Lever() | Creates a Lever with default values. |
Fields
6 private and internal fields
Properties
| Member | What it is |
|---|---|
float Value { get; set; } | Handle position as 0 to 1 across the angle range. Setting a new value raises ValueChanged. |
Events
| Member | What it is |
|---|---|
event Action<Lever, float, float> ValueChanged | Raised with the lever, old value and new value. |
Methods
1 private and internal method
Used in
Members of other types that take, return or hold a Lever: