pointerHover method

dynamic pointerHover(
  1. Pointer pointer
)

Implementation

pointerHover(Pointer pointer) {
  if (object == null || dragging == true) return;

  _raycaster.setFromCamera(Vector2(pointer.x, pointer.y), camera);

  var intersect = intersectObjectWithRay(_gizmo.picker[mode], _raycaster, false);

  if (intersect != null && intersect != false) {
    axis = intersect.object.name;
  } else {
    axis = null;
  }
}