How to crouch in a VR game?

How would you code a crouching movement in Coblocks? I was thinking of adding a button, and when the button is clicked lower camera along z axis. Something like this - but it doesn’t work. It only works for adding to z (like a jump) not with minus.

Hi @Sofiania,

Like this:

Hope that helps!

Geoff @ TechLeap

That works on PC with z-button, but in VR I think I need it to be a button next to the camera, and “when clicked” doesn’t work.

1 Like

How would you code a crouching movement in Coblocks? I was thinking of adding a button, and when the button is clicked lower camera along z axis. Something like this - but it doesn’t work. It only works for adding to z (like a jump) not with minus.