new Runner(base, debris, spine, shell)
Creates a new Runner.
Parameters:
Name | Type | Description |
---|---|---|
base |
Object | A map of properties describing the base of the tornado. |
debris |
Object | A map of properties describing the debris at the base of the tornado. |
spine |
Object | A map of properties describing the tornado's spine. |
shell |
Object | A map of properties describing the tornado's shell (funnel). |
Members
Methods
-
<private> _getNoise()
-
Called at the end of each animation frame.
-
<private> _jointAfterStep()
-
Called at the end of the joints' step function.
-
<private> _setupCallback(options)
-
Sets up the world and items.
Parameters:
Name Type Description options
Object World options. -
init(opt_options=)
-
Initializes an instance of Runner.
Parameters:
Name Type Argument Default Description opt_options=
Object <optional>
A map of initial world properties. opt_options.el
Object <optional>
document.body World's DOM object. opt_options.width
number <optional>
800 World width in pixels. opt_options.height
number <optional>
600 World height in pixels. opt_options.borderWidth
number <optional>
1 World border widthin pixels. opt_options.borderStyle
string <optional>
'solid' World border style. opt_options.borderColor
Object <optional>
0, 0, 0 World border color.