๐Physics Gadget Button
Last updated
Last updated
This component Requires a Configurable Joint. The physical qualities of the button will be determined by the configurable joint and rigidbody
Can be triggered by any collision with enough force to push the configurable joint past the threshold
For something similar the doesn't use physics see: Hand Touch / Trigger
Invert
: When set to true, the value returned by the gadget is inverted. This can be used to reverse the direction or effect of the gadget's movement.Play Range
: Defines the minimum absolute value required for the gadget to return a non-zero value. For instance, with a play range of 0.1, the gadget must be moved 10% of its range to yield a result. This setting helps in creating a dead zone where minor movements are ignored.Threshold
: This variable, with a minimum value of 0.01, defines the percentage (0-1) from the required value needed to trigger the associated events. For example, if the threshold is set to 0.1, the OnMax
event is called at a value of 0.9, OnMin
at -0.9, and OnMid
at -0.1 or 0.1.Lock On Pressed
: Whether or not to lock the button in the On position when pressed