![]() |
VR Interaction Framework v2.0
|
Helper for joystick type physical inputs. More...
Public Member Functions | |
virtual void | OnJoystickChange (float leverX, float leverY) |
virtual void | OnJoystickChange (Vector2 joystickVector) |
Public Attributes | |
float | DeadZone = 0.001f |
float | MinDegrees = -45f |
Minimum angle the Level can be rotated. | |
float | MaxDegrees = 45f |
Maximum angle the Level can be rotated. | |
float | LeverPercentageX = 0 |
Current Percentage of joystick on X axis (left / right) | |
float | LeverPercentageY = 0 |
Current Percentage of joystick on Y axis (forward / back) | |
Vector2 | LeverVector |
bool | UseSmoothLook = true |
float | SmoothLookSpeed = 15f |
bool | KinematicWhileInactive = false |
If true, the joystick's rigidbody will be kinematic when not being held. Enable this if you don't want your joystick to interact with physics or if you need moving platform support. | |
FloatFloatEvent | onJoystickChange |
Event called when Joystick value is changed. | |
Vector2Event | onJoystickVectorChange |
Event called when Joystick value is changed. | |
float | angleX |
float | angleY |
Helper for joystick type physical inputs.
|
virtual |
|
virtual |
float BNG.JoystickControl.angleX |
float BNG.JoystickControl.angleY |
float BNG.JoystickControl.DeadZone = 0.001f |
bool BNG.JoystickControl.KinematicWhileInactive = false |
If true, the joystick's rigidbody will be kinematic when not being held. Enable this if you don't want your joystick to interact with physics or if you need moving platform support.
float BNG.JoystickControl.LeverPercentageX = 0 |
Current Percentage of joystick on X axis (left / right)
float BNG.JoystickControl.LeverPercentageY = 0 |
Current Percentage of joystick on Y axis (forward / back)
Vector2 BNG.JoystickControl.LeverVector |
float BNG.JoystickControl.MaxDegrees = 45f |
Maximum angle the Level can be rotated.
float BNG.JoystickControl.MinDegrees = -45f |
Minimum angle the Level can be rotated.
FloatFloatEvent BNG.JoystickControl.onJoystickChange |
Event called when Joystick value is changed.
Vector2Event BNG.JoystickControl.onJoystickVectorChange |
Event called when Joystick value is changed.
float BNG.JoystickControl.SmoothLookSpeed = 15f |
bool BNG.JoystickControl.UseSmoothLook = true |