public void OnSolverAttraction(ForceSolver solver) { if (_currentlyActiveSolver == solver) { return; } if (_currentlyActiveSolver != null) { _currentlyActiveSolver.ResetToRoot(); } _currentlyActiveSolver = solver; foreach (var planetForceSolver in _planetForceSolvers) { if (solver == planetForceSolver) { continue; } planetForceSolver.ResetToRoot(); planetForceSolver.EnableForce = false; } }
public override void OnPointerDown(MixedRealityPointerEventData eventData) { base.OnPointerDown(eventData); PlanetForceSolver.ResetToRoot(); }