c2.js
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Arc
Field
Circle
Constraint
Circle
Field
Collision
Const
Force
Constraint
Force
Gravitation
Interaction
Force
Line
Field
Particle
Point
Field
Polygon
Constraint
Rect
Constraint
Spring
World
constructor
bounds
constraints
forces
friction
interaction
Forces
particles
springs
add
Constraint
add
Force
add
Interaction
Force
add
Particle
add
Spring
remove
Constraint
remove
Force
remove
Interaction
Force
remove
Particle
remove
Spring
update
Hierarchy
World
Index
Constructors
constructor
Properties
bounds
constraints
forces
friction
interaction
Forces
particles
springs
Methods
add
Constraint
add
Force
add
Interaction
Force
add
Particle
add
Spring
remove
Constraint
remove
Force
remove
Interaction
Force
remove
Particle
remove
Spring
update
Constructors
constructor
new
World
(
bounds
?:
Rect
)
:
World
Parameters
bounds:
Rect
= null
Returns
World
Properties
bounds
bounds
:
Rect
constraints
constraints
:
Constraint
[]
forces
forces
:
Force
[]
friction
friction
:
number
= .75
interaction
Forces
interaction
Forces
:
InteractionForce
[]
particles
particles
:
Particle
[]
springs
springs
:
Spring
[]
Methods
add
Constraint
add
Constraint
(
c
:
Constraint
)
:
void
Parameters
c:
Constraint
Returns
void
add
Force
add
Force
(
f
:
Force
)
:
void
Parameters
f:
Force
Returns
void
add
Interaction
Force
add
Interaction
Force
(
f
:
InteractionForce
)
:
void
Parameters
f:
InteractionForce
Returns
void
add
Particle
add
Particle
(
p
:
Particle
)
:
void
Parameters
p:
Particle
Returns
void
add
Spring
add
Spring
(
s
:
Spring
)
:
void
Parameters
s:
Spring
Returns
void
remove
Constraint
remove
Constraint
(
c
:
Constraint
)
:
void
Parameters
c:
Constraint
Returns
void
remove
Force
remove
Force
(
f
:
Force
)
:
void
Parameters
f:
Force
Returns
void
remove
Interaction
Force
remove
Interaction
Force
(
f
:
InteractionForce
)
:
void
Parameters
f:
InteractionForce
Returns
void
remove
Particle
remove
Particle
(
p
:
Particle
)
:
void
Parameters
p:
Particle
Returns
void
remove
Spring
remove
Spring
(
s
:
Spring
)
:
void
Parameters
s:
Spring
Returns
void
update
update
(
)
:
void
Returns
void