Force after drop

It was bugging me that after the drop obstacle hit the ground and when the player bumps into it, there was an onset of force applied to the player pushing it away. There was a suggestion to add a friction material, which I tried to no avail. The solution that worked for me was to add a tag to the plane “Ground”. Then in the ObjectHit script I added an if statement for other (Collision). Changing the dropped objstacle to kinematic after it contacts the “ground” stops that force from being applied to the player. May not be the correct way but it worked.

if(other.gameObject.tag =="Ground")
        {
            GetComponent<Rigidbody>().isKinematic = true;
        }

Privacy & Terms