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

Adding force to rigidbody2d to slide

$
0
0
Hello, I'm having problems adding force to rigidbody2d properly, the effect I want to achieve is to add a forward forward to my rigidbody2d to make it slide forward, sometimes the rigidbody slides, sometimes it makes a sudden jerk forward and stopped. Is there anyway to ensure that the rigidbody slides everytime I apply a force to it? As of now i'm using `rigidbody2d.velocity = new Vector2D(10,0)` to create a push forward everytime I press a button (for example spacebar).

Viewing all articles
Browse latest Browse all 1264

Trending Articles



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