Skip to content

IPhysicsAddFactory

Accessors

container

set container(value): void

Parameters

value: Container<DisplayObject>

Source

src/physics/interfaces/IPhysicsAddFactory.ts:8

Methods

existing()

existing(pSprite): IPhysicsObject

Parameters

pSprite: DisplayObject

Returns

IPhysicsObject

Source

src/physics/interfaces/IPhysicsAddFactory.ts:23


physicsSprite()

physicsSprite(settings)

physicsSprite(settings): IPhysicsObject

Parameters

settings: PhysicsSpriteSettings

Returns

IPhysicsObject

Source

src/physics/interfaces/IPhysicsAddFactory.ts:10

physicsSprite(asset, sheet, size, bodyType, alpha, position, scale, __namedParameters)

physicsSprite(asset, sheet?, size?, bodyType?, alpha?, position?, scale?, __namedParameters?): IPhysicsObject

Parameters

asset: string | Texture<Resource>

sheet?: SpritesheetLike

size?: PointLike

bodyType?: PhysicsBodyType

alpha?: number

position?: PointLike

scale?: PointLike

__namedParameters?: any

Returns

IPhysicsObject

Source

src/physics/interfaces/IPhysicsAddFactory.ts:12