Package | com.gestureworks.away3d.utils |
Class | public class TransformUtils |
Inheritance | TransformUtils ![]() |
Method | Defined By | ||
---|---|---|---|
alignRotateToCamera(obj3d:ObjectContainer3D, camera:Camera3D):Vector3D [static]
This method will update a dtheta gesture rotate value
so that applied transformation will be parallel
to the camera's view plane. | TransformUtils | ||
snapRotateToCamera(obj3d:ObjectContainer3D, camera:Camera3D):Vector3D [static]
This method will update a dtheta gesture rotate value
so that applied transformation will snap to the nearest
x,y,z axis perpendicular to the camera's view plane
(meaning the applied rotational transformation will be
approximately parallel to the camera's view plane). | TransformUtils | ||
updateAxisRotation(e:GWGestureEvent, axis:Vector3D):void [static] | TransformUtils |
alignRotateToCamera | () | method |
public static function alignRotateToCamera(obj3d:ObjectContainer3D, camera:Camera3D):Vector3D
This method will update a dtheta gesture rotate value so that applied transformation will be parallel to the camera's view plane.
Parameters
obj3d:ObjectContainer3D | |
camera:Camera3D |
Vector3D |
snapRotateToCamera | () | method |
public static function snapRotateToCamera(obj3d:ObjectContainer3D, camera:Camera3D):Vector3D
This method will update a dtheta gesture rotate value so that applied transformation will snap to the nearest x,y,z axis perpendicular to the camera's view plane (meaning the applied rotational transformation will be approximately parallel to the camera's view plane). axis on the object.
Parameters
obj3d:ObjectContainer3D | |
camera:Camera3D |
Vector3D |
updateAxisRotation | () | method |
public static function updateAxisRotation(e:GWGestureEvent, axis:Vector3D):void
Parameters
e:GWGestureEvent | |
axis:Vector3D |