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 optionsObject 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.elObject <optional>
document.body World's DOM object. opt_options.widthnumber <optional>
800 World width in pixels. opt_options.heightnumber <optional>
600 World height in pixels. opt_options.borderWidthnumber <optional>
1 World border widthin pixels. opt_options.borderStylestring <optional>
'solid' World border style. opt_options.borderColorObject <optional>
0, 0, 0 World border color.