1
\$\begingroup\$

Say I have a FreeCamera in a BabylonJS 3D world. How could I rotate that camera from program code? Or, more specifically, how might I bind camera rotation (not movement, which I know how to bind to WASD) to the arrow keys so that gamers without a mouse would not find it too troublesome to use? Is this even possible?

Thanks in advance!

\$\endgroup\$
  • \$\begingroup\$ There are no pc gamers without a mouse, you can't even start the program easily without it \$\endgroup\$ – Bálint Jan 9 '17 at 12:26
1
\$\begingroup\$

FreeCamera extends TargetCamera, so it has a rotation variable. You can change this to rotate the camera around.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.