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

RigidBody2d AddForce not working

$
0
0
I am new to unity and just trying to move a ball (prefab) up. I want to create the ball using the script, which works, I see the ball on the screen so it instantiates correctly. But when I try to ally force to the ball nothing happens. Currently the setting variables are set to: Gravity: 0, Simulated: true, Body Type: Dynamic, Mass: 1, Angular Drag: 1 here is my script: ![alt text][1] I am not sure what I am doing wrong, any help would be appreciated, thanks. [1]: /storage/temp/103937-capture.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>