rb.isKinematic = false
using UnityEngine;public class GravityOn : MonoBehaviour{ private Rigidbody rb; void OnTriggerEnter(Collider other) { if (other.gameObject.tag == "Player") { // Code to trigger when the collision occurs print("Gravity"); rb = GetComponent<Rigidbody>(); rb.isKinematic = false; } }}