Continuing the discussion from Keep the positionGizmo'pose by a given value:
here is the PG:
Continuing the discussion from Keep the positionGizmo'pose by a given value:
here is the PG:
An accessor is missing.
doing this will work :
gizmo.gizmos.positionGizmo.xGizmo.customRotationQuaternion = new BABYLON.Vector3(1,2,3).toQuaternion();
gizmo.gizmos.positionGizmo.yGizmo.customRotationQuaternion = new BABYLON.Vector3(1,2,3).toQuaternion();
gizmo.gizmos.positionGizmo.zGizmo.customRotationQuaternion = new BABYLON.Vector3(1,2,3).toQuaternion();
Because arrow rendering and interaction is done with sub gizmo. Iām adding an accessor that will set the quaternion to the child so your PG will work.