class WMParams
Available on all platforms
Container for the parameters used in wm3d. Almost all variables are referenced by parent class, Watermelon Thus, most variables should be defined as public.
Variables in this class may not be modified by standard usage unlike those in WMStates.
Instance Fields
var mouseMoveRotatScale:Float
coefficient for rotation degrees in mouse dragging (only in rotation mode)
var numFramesPerScene:Int
number of frames displayed for a scene
this value is determined by the framerate of the flash and framerate of
playFrameRate
variable.
function new(w:Watermelon):Void
Constructor.
Default values:
- doCulling; true
- traceColor: 0xFF0000
- arDegree: 1.5
- scaleWheel: 0.01
- depthWheel: 0.04 * max( stageWidth, stageHeight )
- playFrameRate: 3.0 // 3 frames per sec (at most)
- mouseMoveRotatScale: 30.0
- mouseMoveScaleScale: 15.0
- protectData: false
- readBackground: false
- numFramesPerScene: -1
- inheritScale: true
- doAutoScale: true
- scaleFactorAuto: 0.3
- scaleFactorManual: 10.0
- dcActive: true
- dcCoeff: 4.0 / min( stageWidth, stageHeight )
- dcLength: -0.2 * min( stageWidth, stageHeight )