Plush

MatterDust#

PlushEngine · Type index

Namespace: PlushEngine.Matter (using PlushEngine.Matter;)

Links one Matter source to one batched dust occurrence: opened cut faces, falling-face trails and flat-floor landing bursts. Put this Script on an always-active helper, since the fractured source becomes inactive.

public sealed class MatterDust : Script

Members: AfterPhysics · ChipBudget · ChipLifetime · Chips · Dust · EmittedParticles · FloorHeight · LandingPuffs · OnDestroy · OnStart · OpenedFaces · OpeningPuffsPerSquareMetre · Reset · Seed · Source · TrailBirths · TrailInterval · TrailSpacing · VelocityShare

AfterPhysics#

public override void AfterPhysics(float deltaTime);

ChipBudget#

[Range(0, 128)]
public int ChipBudget;

ChipLifetime#

[Range(.1, 30)]
public float ChipLifetime;

Chips#

public AssemblyReference Chips;

Dust#

public EffectReference Dust;

EmittedParticles#

public int EmittedParticles { get; }

FloorHeight#

[Range(-100, 100)]
public float FloorHeight;

LandingPuffs#

[Range(0, 12)]
public int LandingPuffs;

OnDestroy#

public override void OnDestroy();

OnStart#

public override void OnStart();

OpenedFaces#

public int OpenedFaces { get; }

OpeningPuffsPerSquareMetre#

[Range(0, 50)]
public float OpeningPuffsPerSquareMetre;

Reset#

public void Reset();

Clears emitted dust, chips and tracking when the source is restored for another authored take.

Seed#

public int Seed;

Source#

public SceneReference Source;

TrailBirths#

public int TrailBirths { get; }

TrailInterval#

[Range(.02, 1)]
public float TrailInterval;

TrailSpacing#

[Range(.02, 2)]
public float TrailSpacing;

VelocityShare#

[Range(0, 1)]
public float VelocityShare;

AssemblyReference · EffectReference · SceneReference · Script

Source#