Trees are flying when rigidbody is activated

(Here is a video)

I’m trying to make a tree fall when it’s health is 0. I then add rigidbody and use AddForce to make it fall, but it flies instead. I also tried setting it’s mass and drag to some crazy high number with no success.

My Code:

private void Update()
        if(Health <= 0 && !chopped)
            Rigidbody _rb = this.gameObject.AddComponent<Rigidbody>();
            _rb.mass = 100;
            _rb.drag = 1000000;
            _rb.useGravity = true;
            _rb.AddForce(Vector3.forward, ForceMode.Impulse);
            _rb.constraints = RigidbodyConstraints.FreezePositionX | RigidbodyConstraints.FreezePositionY | RigidbodyConstraints.FreezePositionZ;
            chopped = true;



If anyone has any idea what could be wrong please tell me, it’s been driving me crazy.


Hi @vakkeh,

Kindly check the following script and video, this might help you out:

I believe you need to :

  1. Remove the constraint
  2. Add collider to ground
  3. Add force towards the required direction
  4. The pivot should be correct

Hope that will help you out.