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

AddForce instead of modyfing Velocity

$
0
0
I just realized that if i want to use physics with rigidbodies2d i cant move the player or character by modyfing Rigidbody2D.velocity. So how do i do it? Im getting the movement input from GetAxis("Horizontal") and i want the character to move left or right depending on this. Its easy if i want to use velocity but how would i convert this to AddForce?

Viewing all articles
Browse latest Browse all 1264

Trending Articles



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