VrControllerAvatarNode constructor
VrControllerAvatarNode({
- required VrControllerProfile profile,
- required CameraRig cameraRig,
- double visualScale = 2.0,
- Vector3? anchorOffset,
- VrControllerArmModel? armModel,
Implementation
VrControllerAvatarNode({
required this.profile,
required this.cameraRig,
this.visualScale = 2.0,
Vector3? anchorOffset,
this.armModel,
}) : anchorOffset = anchorOffset?.clone() ?? Vector3(0.25, -0.24, 0.55),
super(name: 'remote-controller-${profile.deviceId}') {
if (!visualScale.isFinite || visualScale <= 0) {
throw ArgumentError.value(
visualScale,
'visualScale',
'Must be finite and positive.',
);
}
_buildPhone();
}