Constructor
new GrWorld(params)
Construct an empty world
Parameters:
Name | Type | Description |
---|---|---|
params |
GrWorldProperties |
- Source:
Members
camera :THREE.PerspectiveCamera
Type:
- THREE.PerspectiveCamera
- Source:
objects :Array.<GrObject>
Type:
- Array.<GrObject>
- Source:
renderer :THREE.WebGLRenderer
Type:
- THREE.WebGLRenderer
- Source:
Methods
advance()
advance all of the objects
- Source:
animate()
perform a cycle of the animation loop - this measures the time since the last redraw and advances that much before redrawing
- Source:
draw()
draw the default camera to the default renderer
- Source:
go()
start an (endless) animation loop - this just keeps going
- Source: