VrControllerArmModel constructor
VrControllerArmModel({
- VrControllerHandedness handedness = VrControllerHandedness.right,
- Vector3? restOffset,
- double horizontalReach = 0.12,
- double verticalReach = 0.10,
- double depthReach = 0.08,
- double responsiveness = 18,
Implementation
VrControllerArmModel({
this.handedness = VrControllerHandedness.right,
Vector3? restOffset,
this.horizontalReach = 0.12,
this.verticalReach = 0.10,
this.depthReach = 0.08,
this.responsiveness = 18,
}) : restOffset =
restOffset?.clone() ??
Vector3(
handedness == VrControllerHandedness.left ? -0.25 : 0.25,
-0.24,
0.55,
) {
_requireNonNegative(horizontalReach, 'horizontalReach');
_requireNonNegative(verticalReach, 'verticalReach');
_requireNonNegative(depthReach, 'depthReach');
if (!responsiveness.isFinite || responsiveness <= 0) {
throw ArgumentError.value(
responsiveness,
'responsiveness',
'Must be finite and positive.',
);
}
}