phaser-ce icon indicating copy to clipboard operation
phaser-ce copied to clipboard

Arcade Physics, circle body collide with moving satellite

Open xquangdang opened this issue 8 years ago • 2 comments

This Issue is about (pick one, ✏️ delete others) I have a planet with circle body. When satellite collide with the planet body, I will add the satellite to the planet's satelliteGroup. I all so rotate the planet so the satellite will also move around the planet. I calculate the offset and angle when addChild to planet. The problem is that with different velocity, the satellite position is not correct.

  • A bug in the API:
    • Phaser version(s): CE 2.10.2

Velocity: 500 29003754_1704604416263782_675977324_n Velocity: 800 29019838_1704604812930409_1841500369_n

xquangdang avatar Mar 20 '18 06:03 xquangdang

I don't think you'll be able to use both addChild and velocity and get the result you want.

samme avatar Mar 21 '18 18:03 samme

How should I update logic in arcade.collide callback? I get what I want by using setTimeout() inside the callback. But I feel it not the right way to do

xquangdang avatar Mar 21 '18 20:03 xquangdang