Skip to content

IPhysicsMakeFactory

Methods

physicsSprite()

physicsSprite(settings)

physicsSprite(settings): IPhysicsObject

Parameters

settings: PhysicsSpriteSettings

Returns

IPhysicsObject

Source

src/physics/interfaces/IPhysicsMakeFactory.ts:10

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

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

Parameters

asset: string | Texture<Resource>

sheet?: SpritesheetLike

size?: PointLike

bodyType?: PhysicsBodyType

alpha?: number

position?: PointLike

scale?: PointLike

Returns

IPhysicsObject

Source

src/physics/interfaces/IPhysicsMakeFactory.ts:12