Some time Position,scale,rotation and _rotationQuaternion verctor set to NaN(not a number)

BoundingBoxGizmo.MakeNotPickableAndWrapInBoundingBox Some time set Position,scale,rotation and _rotationQuaternion verctor set to NaN(not a number) .

Before MakeNotPickableAndWrapInBoundingBox

_position: e {_isDirty: false, _x: 0, _y: 0, _z: 0}
_rotation: e {_isDirty: false, _x: 0, _y: 0, _z: 0}
_rotationQuaternion: null
_scaling: e {_isDirty: false, _x: 1, _y: 1, _z: 1}

After MakeNotPickableAndWrapInBoundingBox
_position: e {_isDirty: true, _x: NaN, _y: NaN, _z: NaN}
_rotation: e {_isDirty: false, _x: 0, _y: 0, _z: 0}
_rotationQuaternion: e {_isDirty: true, _x: NaN, _y: NaN, _z: NaN, _w: NaN}
_scaling: e {_isDirty: true, _x: NaN, _y: NaN, _z: NaN}

Please let us know what is possible solution for the same

Hey
can you provide a repro of your issue in the playground?

1 Like

If you are using Math.acos() or Math.asin(), make sure that you aren’t giving it a value greater than 1 or less than -1.

That used to get me every now and then.

Also make sure you aren’t accidentally dividing by 0 somewhere.

1 Like

Hello @Kiran_Rohit checking in, are you still having this issue?