class WMStates
Available on all platforms
Status variables in wm3d
Instance Fields
var mouseModeL:Int
current mouse mode for left button.
Valid values are listed in WMMouseModeL
class.
function new(w:Watermelon):Void
Constructor.
Default values:
- arDegreeX: 0.0
- arDegreeY: params.arDegree (see WMParams)
- mouseModeL: MOUSELROTAT_MODE (rotation)
- mousemodeW: MOUSEWSCALE_MODE (scale)
- camera position: -max( stageWidth, stageHeight ) * 2;
- camera aspect: stageWidth / stageHeight
- camera fov angle: determineFov( stageHeight, abs( camera.pos.z ) )
- lght source: ( 1, -1 -1 )
function initPlay():Void
begin playing scenes (if there is only one scene, do nothing.).
Usually this function is called by playForward
or playReverse