struct ParticleCollisionSettings

Structure used for initializing a ParticleCollisions object.

Public

Fields

Mode

Collision mode determining with which geometry the particles will interact with.

Restitution

float Restitution

Determines the elasticity (bounciness) of the particle collision.

Lower values make the collision less bouncy and higher values more.

Dampening

float Dampening

Determines how much velocity should a particle lose after a collision, in percent of its current velocity.

In range [0, 1].

LifetimeLoss

float LifetimeLoss

Determines how much should the particle lifetime be reduced after a collision, in percent of its original lifetime.

In range [0, 1].

Radius

float Radius

Radius of every individual particle used for collisions, in meters.

Layer

u64 Layer

Physics layers that determine which objects will particle collide with.

Only relevant when using the World collision mode.