unrail-engine
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Particle
constructor
angle
color
height
id
opacity
pos
radius
velocity
width
x
y
collide
render
update
Hierarchy
GameObject
Particle
Index
Constructors
constructor
Properties
angle
color
height
id
opacity
pos
radius
velocity
width
x
y
Methods
collide
render
update
Constructors
constructor
new
Particle
(
id
:
number
, pos
:
Vector2
, speed
?:
number
, angle
?:
ParticleAngle
, color
?:
string
)
:
Particle
Parameters
id:
number
pos:
Vector2
speed:
number
= 5
Optional
angle:
ParticleAngle
Optional
color:
string
Returns
Particle
Properties
angle
angle
:
ParticleAngle
color
color
:
string
Optional
height
height
:
number
id
id
:
number
opacity
opacity
:
number
pos
pos
:
Vector2
radius
radius
:
number
= 2
velocity
velocity
:
Vector2
Optional
width
width
:
number
x
x
:
number
y
y
:
number
Methods
collide
collide
(
obj
:
GameObject
)
:
boolean
Parameters
obj:
GameObject
Returns
boolean
render
render
(
)
:
void
Returns
void
update
update
(
)
:
void
Returns
void
Generated using
TypeDoc