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

Add force random movement and random rotation [2D]

$
0
0
I have a box and inside three 2D sprites. The walls of the box have bounce surface material. What I would like is these three sprites to move with random speed at random direction and every time one of them hits a wall to change rotation and move away, all this while slowly falling to the lower part of the box (cause of physics drag). I prefer c# solutions and thank you for your time!

Viewing all articles
Browse latest Browse all 1264

Trending Articles



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