Freeze object?
How do i freeze an object when clicked on it. I know how to change the 'use gravity' but, how do i make it freeze? And also unfreeze?
Because if i click now, the 'use gravity' turns off, and it's now a object in space.. which, is logical, but, again, how do i make it freeze?
thank you
Answer by MacDx · Jan 31, 2018 at 11:33 PM
The RigidBody component has a constraints field where you can freeze X,Y or Z movement as well as X,Y or Z rotations.
You can also modify those by script. Here's the documentation on that: https://docs.unity3d.com/ScriptReference/RigidbodyConstraints.html
Your answer
Follow this Question
Related Questions
Problems with Mecanim and Script 0 Answers
need help with simple timing code 1 Answer
How to make an enemy 2d chasing player? 2 Answers
Get Public Methods from MonoScript 4 Answers
How to morph between point clouds? (Rendered meshes) 0 Answers