- Home /
I want to freeze Y position of an object while using steam VR.
I am trying to freeze the Y position of my chair in scene so that I am only able to push or pull the chair and not lift it. I have added rigidbody and applied freeze position constraint to Y but still I am able to lift it. Help me with this.
Comment
Answer by FaffyWaffles · Feb 12 at 11:41 AM
Untested Code
public Transform chair;
public Vector3 lock;
void Start
{
lock = chair.transform.position;
}
void Update
{
chair.transform.position.y=lock.y;
}
Your answer
Follow this Question
Related Questions
Grabbing a handle in VR and rotating it like a crank? 1 Answer
How to disable the automatic Left/Right attribution of the Vive Controllers ? 0 Answers
Making the avatar look toward a specific direction 2 Answers
How to access to SteamVR Camera? 1 Answer
SteamVR build exe not working when i try to access it from inside of the appdata folder. 0 Answers