Interface DropperTextureConfig

interface DropperTextureConfig {
    angle?: number;
    autoPick?: boolean;
    autoPickLimit?: number;
    content?: string;
    density?: number;
    excludeAutoPick?: string[];
    forceRotate?: number;
    forceX?: number;
    forceY?: number;
    friction?: number;
    frictionAir?: number;
    gravity?: number;
    gravityPoint?: [number, number];
    imageSize?: number;
    randomly?: boolean;
    restitution?: number;
    shape?: DropperTextureShape;
    size: number;
    size2?: number;
    sprite?: {
        frame: number;
        height: number;
        width: number;
    };
    src?: string | string[];
    through?: boolean;
    useGravityPoint?: boolean;
    wind?: number;
    xScale?: number;
    yScale?: number;
}

Properties

angle?: number
autoPick?: boolean
autoPickLimit?: number
content?: string
density?: number
excludeAutoPick?: string[]
forceRotate?: number
forceX?: number
forceY?: number
friction?: number
frictionAir?: number
gravity?: number
gravityPoint?: [number, number]
imageSize?: number
randomly?: boolean
restitution?: number
size: number
size2?: number
sprite?: {
    frame: number;
    height: number;
    width: number;
}

Type declaration

  • frame: number
  • height: number
  • width: number
src?: string | string[]
through?: boolean
useGravityPoint?: boolean
wind?: number
xScale?: number
yScale?: number