- Home /
Lock position of gameObject
Any other way to lock the position of the object despite being in collision with other objects. I don't want to use isKinematic because the objects pass through it. All of the objects on my scene is draggable but one for example should lock its position while it is in contact with the other. I enabled rigidbody and added colliders for each.
Answer by flamy · Feb 05, 2012 at 04:44 AM
Try increasing the mass of the rigid body to a greater value ... but actually there is a way to do this in unity 3.5 (beta). if u r using unity 3.5 you can freeze the position on X , Y or Z (or all) through the rigid body component
they have to have the same mass i tried the rigidbodyconstraints, it actually worked but the objects are passing through it
Your answer
Follow this Question
Related Questions
Forcing a rotation point 2 Answers
Objects not always Spawning At Correct Location 2 Answers
how to ignore transform.position.y 3 Answers