- Home /
Static, Non movable rigidbody
My requirement is pretty clear. I want to create game object which does not move from its place based on any force apply to it.
There are other objects which affects this game object and apply some force to it but I want to freeze this game object in any situation.
Right now I set mass of this object to 10 and apply constraints on all positions and rotations values. As a result it is jerking some what now become static and it is building object so jerky building look too much poor.
I want to create behavior such that static body in other game engine like cocos2d, andengine, libgdx etc.
I hope you understand my question so please give some helpful information.
Answer by davidc · Sep 16, 2014 at 09:02 AM
Hey Mate, try turning on Is Kinematic on the rigid body. See more info here http://docs.unity3d.com/ScriptReference/Rigidbody-isKinematic.html
Sorry for my this silly question but you are right.
Answer by petersvp · Aug 31, 2015 at 02:28 PM
Or just drop the RigidBody entirely and leave only a Collider. Colliders are strongly static unless you move the gameObject [best, tag the gameObject a static as well]
For convenience...
http://docs.unity3d.com/$$anonymous$$anual/CollidersOverview.html
At "Collider interactions" -> "Static Collider"
Answer by sreena_unity · Sep 16, 2014 at 09:43 AM
use this rigidbody.isKinematic=true.//this will help you to freeze the game object and u can control it by script
Answer by unity_HxF9bz13Mt5zfw · Jul 26, 2018 at 06:22 AM
But when I set isKinematic to true , they can coincide which I don't want
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Parenting Preventing Player Rotation 0 Answers
How to roll a cube 0 Answers
should I remove unused rgidbodies? 1 Answer
Rigidbody speed / Velocity issue 0 Answers