RSX Code Reference
    Preparing search index...
    • rsx
    • ParticleDepthCollisionSettings

    Class ParticleDepthCollisionSettings

    @}

    @{

    Index
    • get dampening(): number

      Determines how much velocity should a particle lose after a collision, in percent of its current velocity. In range [0, 1].

      Returns number

    • set dampening(value: number): void

      Parameters

      • value: number

      Returns void

    • get isEnabled(): boolean

      Determines if depth collisions are enabled.

      Returns boolean

    • set isEnabled(value: boolean): void

      Parameters

      • value: boolean

      Returns void

    • get radiusScale(): number

      Scale which to apply to particle size in order to determine the collision radius.

      Returns number

    • set radiusScale(value: number): void

      Parameters

      • value: number

      Returns void

    • get restitution(): number

      Determines the elasticity (bounciness) of the particle collision. Lower values make the collision less bouncy and higher values more.

      Returns number

    • set restitution(value: number): void

      Parameters

      • value: number

      Returns void

    • Allows modifying this object multiple times in a row in a scope, without marking the object dirty immediately. Dirty flags are accumulated and the object is marked dirty at the end.

      Parameters

      • action: () => void

        The scope where the object is modified.

      Returns void