![]() |
VR Interaction Framework v2.0
|
This component is similar to the JoystickControl, but is designed to be used on fast moving Rigidbodies. More...
Public Member Functions | |
virtual void | CallJoystickEvents () |
virtual void | OnJoystickChange (float leverX, float leverY) |
virtual void | OnJoystickChange (Vector2 joystickVector) |
Public Attributes | |
Grabbable | JoystickGrabbable |
bool | UseSmoothLook = true |
float | SmoothLookSpeed = 15f |
Transform | HingeXTransform |
float | MinXAngle = -45f |
float | MaxXAngle = 45f |
Transform | HingeYTransform |
float | MinYAngle = -45f |
float | MaxYAngle = 45f |
float | ReturnToCenterSpeed = 5f |
float | DeadZone = 0.001f |
FloatFloatEvent | onJoystickChange |
Event called when Joystick value is changed. | |
Vector2Event | onJoystickVectorChange |
Event called when Joystick value is changed. | |
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 |
float | angleX |
float | angleY |
This component is similar to the JoystickControl, but is designed to be used on fast moving Rigidbodies.
|
virtual |
|
virtual |
|
virtual |
float BNG.JoystickVehicleControl.angleX |
float BNG.JoystickVehicleControl.angleY |
float BNG.JoystickVehicleControl.DeadZone = 0.001f |
Transform BNG.JoystickVehicleControl.HingeXTransform |
Transform BNG.JoystickVehicleControl.HingeYTransform |
Grabbable BNG.JoystickVehicleControl.JoystickGrabbable |
float BNG.JoystickVehicleControl.LeverPercentageX = 0 |
Current Percentage of joystick on X axis (left / right)
float BNG.JoystickVehicleControl.LeverPercentageY = 0 |
Current Percentage of joystick on Y axis (forward / back)
Vector2 BNG.JoystickVehicleControl.LeverVector |
float BNG.JoystickVehicleControl.MaxXAngle = 45f |
float BNG.JoystickVehicleControl.MaxYAngle = 45f |
float BNG.JoystickVehicleControl.MinXAngle = -45f |
float BNG.JoystickVehicleControl.MinYAngle = -45f |
FloatFloatEvent BNG.JoystickVehicleControl.onJoystickChange |
Event called when Joystick value is changed.
Vector2Event BNG.JoystickVehicleControl.onJoystickVectorChange |
Event called when Joystick value is changed.
float BNG.JoystickVehicleControl.ReturnToCenterSpeed = 5f |
float BNG.JoystickVehicleControl.SmoothLookSpeed = 15f |
bool BNG.JoystickVehicleControl.UseSmoothLook = true |