bp-cloner
    Preparing search index...

    Class RandomEffector

    Each Cloner can have a set of Effectors assigned. The Effector influences properties of the clones cloned by a Cloner. The RandomEffector can influence all transfomation properties (scale/rotation/position) with repeatable random values. Different random sequences can be achieved with a different seed value. The RandomEffector can serve more than one cloner but it has only one property to control the strength of the random values. Therefore each cloner has a property sensitivity to accept either all or only a portion of the cloners strength. Note: the scaling transformation will be done in two different ways depending on the property uniformScale: if this property is set to true, only one random value will be used for all three scaling components (x,y,z) and the y/z componets of the scale property will be ignored. If set to false, each direction is scaled independently with an extra random value.

    The the seed value for generating different sequences of random values. Default 42.

    Sets the strength of the generator (range 0 to 1).

    true => all scaling directions with one value, false independently scaling.

    Sets position values in the range 0 to {x: number, y: number, z: number}.

    Sets scaling values in the range 0 to {x: number, y: number, z: number}.

    Sets rotation values in the range 0 to {x: number, y: number, z: number}.

    Index

    Constructors

    Accessors

    • get position(): Vector3

      Returns Vector3

    • set position(p: { x: number; y: number; z: number }): void

      Parameters

      • p: { x: number; y: number; z: number }

      Returns void

    • get rotation(): Vector3

      Returns Vector3

    • set rotation(r: { x: number; y: number; z: number }): void

      Parameters

      • r: { x: number; y: number; z: number }

      Returns void

    Methods

    • Parameters

      • __namedParameters: { max?: number; min?: number } = {}

      Returns number