# PHASER 3\> BALL and PUCK\> Simple collision arcade mode\> not working

**URL:** <https://phaser.discourse.group/t/phaser-3-ball-and-puck-simple-collision-arcade-mode-not-working/13017>\
**Category:** Phaser 3\
**Created:** [March 13, 2023, 1:48am UTC](https://phaser.discourse.group/t/phaser-3-ball-and-puck-simple-collision-arcade-mode-not-working/13017 "2023-03-13T01:48:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![laurent\_h](https://avatars.discourse-cdn.com/v4/letter/l/dec6dc/32.png) [@laurent\_h](https://phaser.discourse.group/u/laurent_h)\
**Post date:** [March 13, 2023, 1:48am UTC](https://phaser.discourse.group/t/phaser-3-ball-and-puck-simple-collision-arcade-mode-not-working/13017/1 "2023-03-13T01:48:52Z")

</div>

Hi,

I try to make a simple collision between a puck and a ball, with arcade engine,  
but nothing happens.

here my simple code 🙂

```javascript
var config = {
	type: Phaser.AUTO,
	backgroundColor: '#000000',
	width: 400,
	height: 650,
	physics: {
		default: 'arcade',
		arcade: {
			debug: true,
			gravity: {
				x: 0,
				y: 0
			},
		}
	},
	scene: {
		init: init,
		create: create,
		update: update,
	}
};

var game = new Phaser.Game(config);
var ball;
var player2;

function init(){}

function create()
{
	// ball
	ball = this.add.circle((game.config.width/2), 100, 10, 0xffffff);
	
	// player 2
	player2 = this.add.circle((game.config.width/2), 150, 20, 0x840707).setStrokeStyle(10, 0xF30D0D);
	this.input.setDraggable(player2.setInteractive());
	this.input.on('drag', function (pointer, gameObject, dragX, dragY) {
		gameObject.x = dragX;
		gameObject.y = dragY;
	});
	
	// add physics
	this.physics.add.existing(ball, false);
	this.physics.add.existing(player2, false);
	
	this.physics.add.collider(ball, player2);
	
}

function update()
{

}

```

Thanks

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [March 13, 2023, 1:52am UTC](https://phaser.discourse.group/t/phaser-3-ball-and-puck-simple-collision-arcade-mode-not-working/13017/2 "2023-03-13T01:52:01Z")

</div>

Generally, bodies need velocity for collisions to work correctly.
