activateGizmos method

dynamic activateGizmos(
  1. dynamic isActive
)
  • Make rotation gizmos more or less visible
    • @param {Boolean} isActive If true, make gizmos more visible

Implementation

activateGizmos(isActive) {
  var gizmoX = this._gizmos.children[0];
  var gizmoY = this._gizmos.children[1];
  var gizmoZ = this._gizmos.children[2];

  if (isActive) {
    gizmoX.material.setValues({'opacity': 1});
    gizmoY.material.setValues({'opacity': 1});
    gizmoZ.material.setValues({'opacity': 1});
  } else {
    gizmoX.material.setValues({'opacity': 0.6});
    gizmoY.material.setValues({'opacity': 0.6});
    gizmoZ.material.setValues({'opacity': 0.6});
  }
}