babylon.quarks - v1.0.0
    Preparing search index...

    Type Alias ScalingMode

    ScalingMode: "local" | "hierarchy" | "shape"

    What the emitter's scale does to the system, as Unity's Scaling Mode, in world and local space alike. The scale reaches the emission shape, the particles' size, their start velocity (along each axis, in world space too, as Unity's: an emitter at half scale starts them at half speed, measured in Unity 6), their speed limits in local space (where the emitter's whole frame scales them) and, in world space, ForceOverLife and ApplyForce (by the mean of the axes), so a scaled effect looks and moves like a scaled model, except where a mode leaves it out:

    • 'local' (default, as in Unity): only the emitter's own scaling; its parents' scale is left out, so an effect keeps its size under a scaled character or prop.
    • 'hierarchy': the emitter's whole world scale, its parents' included.
    • 'shape': the world scale sizes the emission shape alone; the particles keep their size and speed, so a bigger emitter spreads the same particles over a larger area.

    Under every mode the emitter's position comes from the whole hierarchy, and its turn is Unity's transform.rotation, which stays a rotation under a mirrored parent: 'hierarchy' mirrors the system as its world matrix does, 'local' by the node's own scale alone, and 'shape' only its shape (see ParticleEmitter.matrixWorld). A sub emission starts in its parent particle's frame and takes its size and speed from that, not from the sub emitter's scale; 'shape' still scales its shape by the sub emitter's world scale. With a non-uniform scale 'shape' stretches where particles start and turns the way it sends them, keeping their speed.

    Known differences from Unity: a world force (ForceOverLife, ApplyForce, and so the gravity the Unity exporter writes) is scaled with the motion in 'local' and 'hierarchy', where Unity's gravity is not.