vanruesc/spatial-controls

Restrict y axes to remain on floor

Closed this issue · 2 comments

Is there a possibility disable Y axes angle direction? Character is flying when backward and going to deep when forward because pointer looks that direction.

Have you tried configuring the polar angle? If you're using a 3rd person camera and want to limit the view to not go below the ground level, you can use controls.settings.rotation.setMaxPolarAngle(Math.PI * 0.5).

Closing due to inactivity.