FlyControls:

Although they are not a part of the library itself, in the examples provided there are a few different types of camera controls that you are able to use, for example: orbit controls, FirstPersonControls and FlyControls.

The fly controls are most suitable for my project as they have control over forwards(W), backwards (S), left(A) right(D) but also yaw by rotating the camera left/right with Q and E in addition to up and down movement with R and F.

The FlyControls are also relatively easy to set up after including the js file include “controls = new THREE.FlyControls( camera );” and set the options like movementSpeed to the preferred amount inside the init function and “controls.update( delta );” inside the animate function (delta being the delta clock) and you have a moving camera!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s