Helper function to create a physics-enabled entity
const sprite = new PIXI.Sprite(texture);const physicsEntity = asPhysicsEntity(sprite, physicsWorld, { type: 'dynamic', shape: 'circle', radius: 25}); Copy
const sprite = new PIXI.Sprite(texture);const physicsEntity = asPhysicsEntity(sprite, physicsWorld, { type: 'dynamic', shape: 'circle', radius: 25});
Helper function to create a physics-enabled entity