Class SwingArmModel
Inherited Members
Namespace: UnityEngine.XR.LegacyInputHelpers
Assembly: UnityEngine.XR.LegacyInputHelpers.dll
Syntax
public class SwingArmModel : ArmModel
Properties
elbowRotationRatio
Portion of controller rotation applied to the elbow joint.
Declaration
public float elbowRotationRatio { get; set; }
Property Value
Type | Description |
---|---|
float |
jointShiftExponent
Exponent applied to the joint shift ratio to control the curve of the shift.
Declaration
public float jointShiftExponent { get; set; }
Property Value
Type | Description |
---|---|
float |
maxJointShiftAngle
Max angle of the controller before starting to lerp towards the shifted joint ratios.
Declaration
public float maxJointShiftAngle { get; set; }
Property Value
Type | Description |
---|---|
float |
minJointShiftAngle
Min angle of the controller before starting to lerp towards the shifted joint ratios.
Declaration
public float minJointShiftAngle { get; set; }
Property Value
Type | Description |
---|---|
float |
shiftedElbowRotationRatio
Portion of controller rotation applied to the elbow joint when the controller is backwards.
Declaration
public float shiftedElbowRotationRatio { get; set; }
Property Value
Type | Description |
---|---|
float |
shiftedShoulderRotationRatio
Portion of controller rotation applied to the shoulder joint when the controller is backwards.
Declaration
public float shiftedShoulderRotationRatio { get; set; }
Property Value
Type | Description |
---|---|
float |
shiftedWristRotationRatio
Portion of controller rotation applied to the wrist joint when the controller is backwards.
Declaration
public float shiftedWristRotationRatio { get; set; }
Property Value
Type | Description |
---|---|
float |
shoulderRotationRatio
Portion of controller rotation applied to the shoulder joint.
Declaration
public float shoulderRotationRatio { get; set; }
Property Value
Type | Description |
---|---|
float |
wristRotationRatio
Portion of controller rotation applied to the wrist joint.
Declaration
public float wristRotationRatio { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
CalculateFinalJointRotations(Quaternion, Quaternion, Quaternion)
Determine the final joint rotations relative to the head.
Declaration
protected override void CalculateFinalJointRotations(Quaternion controllerOrientation, Quaternion xyRotation, Quaternion lerpRotation)
Parameters
Type | Name | Description |
---|---|---|
Quaternion | controllerOrientation | |
Quaternion | xyRotation | |
Quaternion | lerpRotation |