So here’s the deal, I created an object (a sheep) made out of cubes, that move in a circle (while kinematic). I want it to have an effect where when the player runs into the object, it will no longer be kinematic, essentially causing to fall into a little pile of cubes, and stop moving in a circle. Thanks for the help!
What you want to do is make an OnCollisionEnter function in the sheep class, and when the player collides with it, set the sheep kinematic to false: isKinematic = false; An example is this: (Note this code hasn’t been tested.
public Rigidbody SheepRB; //The sheep rigidbody
void Start()
{
SheepRB = GetComponent<Rigidbody>();
}
void OnCollisionEnter (Collision Col)
{
if(Col.gameObject.tag == "Player")
{
SheepRB.isKinematic = false; //Turns off the Kinematic
}
}