VrControllerAvatarNode constructor

VrControllerAvatarNode({
  1. required VrControllerProfile profile,
  2. required CameraRig cameraRig,
  3. double visualScale = 2.0,
  4. Vector3? anchorOffset,
  5. 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();
}