phaser - v4.0.0-rc.4
Preparing search index...
matter
MatterJS
GridFactory
Class GridFactory
Index
Constructors
constructor
Methods
clear
create
update
Constructors
constructor
new
GridFactory
()
:
MatterJS
.
GridFactory
Returns
MatterJS
.
GridFactory
Methods
clear
clear
(
grid
:
MatterJS
.
Grid
)
:
void
Clears the grid.
Parameters
grid
:
MatterJS
.
Grid
Returns
void
Method
clear
create
create
(
options
?:
MatterJS
.
IGridDefinition
)
:
MatterJS
.
Grid
Creates a new grid.
Parameters
Optional
options
:
MatterJS
.
IGridDefinition
Returns
MatterJS
.
Grid
A new grid
Method
create
update
update
(
grid
:
MatterJS
.
Grid
,
bodies
:
MatterJS
.
BodyType
[]
,
engine
:
MatterJS
.
Engine
,
forceUpdate
:
boolean
,
)
:
void
Updates the grid.
Parameters
grid
:
MatterJS
.
Grid
bodies
:
MatterJS
.
BodyType
[]
engine
:
MatterJS
.
Engine
forceUpdate
:
boolean
Returns
void
Method
update
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
clear
create
update
phaser - v4.0.0-rc.4
Loading...
Clears the grid.