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

AddForce(transform.up) works but AddForce(transform.forward) does not

$
0
0
// this works if (Input.GetKeyDown(KeyCode.UpArrow)) { Rigidbody2D tester = this.GetComponent(); tester.AddForce(transform.up * 1000f); } // i change it to this it does not work if (Input.GetKeyDown(KeyCode.UpArrow)) { Rigidbody2D tester = this.GetComponent(); tester.AddForce(transform.forward* 1000f); } Heres a screenshot: [https://snipboard.io/T0MXFK.jpg][1] [1]: https://snipboard.io/T0MXFK.jpg

Viewing all articles
Browse latest Browse all 1264

Trending Articles



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