Skip to main content

SUIDrivingWheel

class SUIDrivingWheel

Renders a functional virtual steering wheel on the screen, with image, color etc, it can be modified as you like.

See the SUIDrivingWheel component topic to learn more about SUIDrivingWheel.


public class SUIDrivingWheel extends Component

— Constructors (1) —

ConstructorDescription
SUIDrivingWheel()Creates a new SUIDrivingWheel.

— Methods (19) —

NameDescription
float getLerp()Returns the current SUIdrivingWheel rotation smoothing value.
void setLerp(float value)Sets the current SUIDrivingWheel rotation smoothing value to be "value" argument.
float getMaxAngle()Returns the maximum rotation angle of the SUIdrivingWheel.
void setMaxAngle(float value)Sets the maximum angle of rotation of the SUIDrivingWheel to be "value" argument.
float getAngle()Returns the current rotation angle of the SUIdrivingWheel.
float getValue()Returns the current value of the SUIDrivingWheel.
String getAxisName()Returns the current Axis name of the SUIDrivingWheel.
void setAxisName(String value)Sets the current Axis name of the SUIDrivingWheel to be "name" argument.
Axis getAxis()Returns the current Axis of the SUIDrivingWheel.
void setAxis(Axis value)Sets the current Axis of the SUIDrivingWheel to be "axis" argument.
boolean isPressed()Returns true if the SUIDrivingWheel is being pressed, false if not.
boolean isDown()Returns true if the SUIDrivingWheel was pressed, false if not.
boolean isUp()Returns true if the SUIDrivingWheel was pressed and released, false if not.
boolean isClickable()Returns true if the SUIDrivingWheel has the "Clickable" option to be "Event" options checked, false if not.
void setClickable(boolean value)Defines if the SUIDrivingWheel will have the "Clickable" option to be "Event" options checked or unchecked to be "value" argument.
STargetRect getTargetRectType()Returns the current Target("MySelf", "Parent" or "Other") type option to be "Event" options of the SUIDrivingWheel.
void setTargetRectType(STargetRect value)Sets the current Target("MySelf", "Parent" or "Other") type option to be "Event" options of the SUIDrivingWheel to be "value" argument.
SpatialObject getTargetRectObject()Returns the current type of Target("MySelf", "Parent" or "Other") along with SUIDrivingWheel SpatialObject.
void setTargetRectObject(SpatialObject object)Sets the current Target("MySelf", "Parent" or "Other") type of the SpatialObject passed to be "object" argument.