C# Class Nez.ParticleCollisionConfig

显示文件 Open project: prime31/Nez

Public Properties

Property Type Description
collidesWithLayers int
elasticity float
enabled bool
friction float
gravity Vector2
lifetimeLoss float
minKillSpeedSquared float
radiusScale float

Property Details

collidesWithLayers public_oe property

control which layers this particle system collides with
public int collidesWithLayers
return int

elasticity public_oe property

0 - 1 range where 0 is no bounce and 1 is perfect reflection
public float elasticity
return float

enabled public_oe property

enable/disable particle collision
public bool enabled
return bool

friction public_oe property

0 - 1 range. 0 means no friction, 1 means the object will stop dead on
public float friction
return float

gravity public_oe property

gravity value used for simulation after a collision occurs
public Vector2 gravity
return Vector2

lifetimeLoss public_oe property

how much a particle's lifetime is reduced after a collision. 0 is none and 1 is all of it.
public float lifetimeLoss
return float

minKillSpeedSquared public_oe property

kill particles whose squared speed falls below this threshold, after a collision
public float minKillSpeedSquared
return float

radiusScale public_oe property

A multiplier applied to the size of each particle before collisions are processed.
public float radiusScale
return float