Quantcast
Channel: Questions in topic: "addforce"
Viewing all articles
Browse latest Browse all 1264

AddForce with direction not working??

$
0
0
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?

Viewing all articles
Browse latest Browse all 1264

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>