new .Gravity(g, lifeopt, easingopt)
Properties:
Name | Type | Description |
---|---|---|
name |
String
|
The Behaviour name |
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
g |
Number
|
Gravity |
||
life |
Number
|
<optional> |
Infinity |
this behaviour's life |
easing |
String
|
<optional> |
Proton.easeLinear |
this behaviour's easing |
Extends
Methods
applyBehaviour(particle, the, the)
Apply this behaviour for all particles every time
- Inherited From:
- Source:
Parameters:
Name | Type | Description |
---|---|---|
particle |
Proton.Particle
|
|
the |
Number
|
integrate time 1/ms |
the |
Int
|
particle index |
reset(fx, fy, lifeopt, easingopt)
Reset this behaviour's parameters
- Overrides:
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
fx |
Number
|
|||
fy |
Number
|
|||
life |
Number
|
<optional> |
Infinity |
this behaviour's life |
easing |
String
|
<optional> |
Proton.easeLinear |
this behaviour's easing |