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

AddForce to a randomly selected GameObject with a rigidbody

$
0
0
Hi, I have an array of GameObjects, and one will be randomly chosen to be teleported to a "throwing area". I'm using Unity and my objects are placed behind a background, hidden from any view. My objective is for my object to be chosen at random, transform it's position to the "throwing area", and then being able to AddForce to it. Currently, I have accomplished choosing a random GameObject in the array, and positioning it to the "throw area". My only issue is to make it so that I can throw it forward using a flick of a finger. Thank you, in advance, for the help! :)

Viewing all articles
Browse latest Browse all 1264

Trending Articles



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