Limiting the rotation of a model in a 3D PDF

Learn how to limit the rotation of a 3D model so that it can only pivot on certain axis.

By Tony DeYoung – June 24, 2006

 

Using a 3D JavaScript you can limit the orientation and rotation of the the camera to control your models. The following examples show how to do this:

Constrain Camera JavaScript
The Constrain Camera javascript is a 3D javascript to prevent the camera from tilting to the side (positive Z-axis is always up). It also scales up or down the "Walk" tool by a settable factor.
Download [JS: 5 KB]

Camera Rotate JavaScript

The Camera Rotate javascript an advanced script that replaces the default camera rotation functionality with a version that makes the model feel like it has some mass.
Download [JS: 16 KB]



Related topics:

JavaScript

Top Searches:


0 comments

Comments for this tutorial are now closed.

Comments for this tutorial are now closed.