unity how to add a bullet impact force code example
Example: unity how to add a bullet impact force
if (hit.transform.tag == "Physics") { hit.rigidbody.AddForceAtPosition (bulletDirection * bulletForce, hit.point); }
if (hit.transform.tag == "Physics") { hit.rigidbody.AddForceAtPosition (bulletDirection * bulletForce, hit.point); }