using UnityEngine; public class SphereCommands : MonoBehaviour { // Called by GazeGestureManager when the user performs a Select gesture void OnSelect() { // If the sphere has no Rigidbody component, add one to enable physics. if (!this.GetComponent()) { var rigidbody = this.gameObject.AddComponent(); rigidbody.collisionDetectionMode = CollisionDetectionMode.Continuous; } } }