- Home /
AddForce to a randomly selected GameObject with a rigidbody
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! :)
Your answer
Follow this Question
Related Questions
Vector3 Parameters and AddForce Not Working Out 1 Answer
Can't seem to use AddForce 2 Answers
Movement Relative to both Camera and XZ Plane 3 Answers
Can an accelerometer be used for a RigidBody based movement? 0 Answers
Top Down car/vehicle movement 1 Answer