Add Physics to Game Objects?

Hi, I’m having trouble understanding how to apply physics to a Phaser.GameObjects.Arc object in Phaser. I’ve noticed that most tutorials focus on using sprites for physics, and I’m struggling with the documentation. I want to add physics methods to my ball object, which is of type Phaser.GameObjects.Arc. Specifically, I’d like to use methods like setVelocity, but they don’t seem to exist for the Arc type. Am I missing a step in the process?

Here’s the code snippet where I’m facing the issue:

let ball: Phaser.GameObjects.Arc;

export function preload(this: Phaser.Scene) {
  // Preload logic here
}

export function create(this: Phaser.Scene) {
  ball = this.add.circle(100, 100, 20, 0x6666ff);
}

function update() {
  const initialVelocityX = 100;
  const initialVelocityY = 100;
  // Need to implement physics here
}

Any advice or guidance would be greatly appreciated. Thanks in advance!

:wave:

ball = this.add.circle(100, 100, 20, 0x6666ff);

// Creates `ball.body`:
this.physics.add.existing(ball);

ball.body.setVelocity(100, 100);

See methods on Phaser.Physics.Arcade.Body.