I'm using this:
Vector3 addforceDirection = hitObject.transform.position - Camera.main.transform.position;
addforceDirection.normalized;
hitObject.transform.rigidbody.AddRelativeForce (addforceDirection * blowback);
And the hitObject.transform.position that I'm hitting isn't getting blown in the direction I want it to. It's always just backards. No matter what I change he just flies backwards. I've tried AddForce and AddRelativeForce. What did I do wrong?
↧