IPhysicsMakeFactory
Methods
physicsSprite()
physicsSprite(settings)
physicsSprite(
settings
):IPhysicsObject
Parameters
• settings: PhysicsSpriteSettings
Returns
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