Apply ridged body to game object when clicked.

I have an object I want to stay in one spot until clicked on. When the object is clicked on I want it to simply fall to the ground.

I’m pretty sure it’s possible to do this through code. However, I only have very little programming experience. I would greatly appreciate any help.

It’s possible to do almost anything with code.

In this case, you should put the rigidbodies on the objects to begin with, and set them to ‘kinematic’ so that they don’t respond to physics.

Then, after raycasting to their position (look it up in the scripting reference, I shouldn’t have to explain something this basic), set the hit rigidbody.isKinematic to false- allowing it to fall.