# Angle showing weird behaviour in Phaser 3

**URL:** <https://phaser.discourse.group/t/angle-showing-weird-behaviour-in-phaser-3/7272>\
**Category:** Phaser 3\
**Created:** [August 26, 2020, 3:49am UTC](https://phaser.discourse.group/t/angle-showing-weird-behaviour-in-phaser-3/7272 "2020-08-26T03:49:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steel](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/steel/32/3918_2.png) [@Steel](https://phaser.discourse.group/u/Steel)\
**Post date:** [August 26, 2020, 3:49am UTC](https://phaser.discourse.group/t/angle-showing-weird-behaviour-in-phaser-3/7272/1 "2020-08-26T03:49:45Z")

</div>

I am trying to implement a shooting mechanism in my game, but the bullets keep shooting in random directions when I try to fire the bullets.

I am following this example :.  
[Example](https://phaser.io/examples/v3/view/physics/arcade/velocity-from-angle#)

One thing I noticed is that the first time I tap on the screen it perfectly fires in the required direction but the second time it fires in some random direction. If I repeatedly keep tapping in that direction it adjusts and fires in my direction.

---

<div class="post-metadata">

**Author:** ![exciteabletom](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/exciteabletom/32/3125_2.png) [@exciteabletom](https://phaser.discourse.group/u/exciteabletom)\
**Post date:** [August 26, 2020, 4:40am UTC](https://phaser.discourse.group/t/angle-showing-weird-behaviour-in-phaser-3/7272/2 "2020-08-26T04:40:35Z")

</div>

Hey Steel,

Would you mind providing a link to some code so I can have a closer look? It sounds like one of those problems where you just need a fresh pair of eyes to check over everything and spot the logical error. : )

Cheers,  
Tom

---

<div class="post-metadata">

**Author:** ![Steel](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/steel/32/3918_2.png) [@Steel](https://phaser.discourse.group/u/Steel)\
**Post date:** [August 26, 2020, 12:44pm UTC](https://phaser.discourse.group/t/angle-showing-weird-behaviour-in-phaser-3/7272/3 "2020-08-26T12:44:46Z")

</div>

Man, thanks a lot for your time. I later rechecked the code and as you said it was a logical issue. The sprites were supposed to be destroyed.

---

<div class="post-metadata">

**Author:** ![exciteabletom](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/exciteabletom/32/3125_2.png) [@exciteabletom](https://phaser.discourse.group/u/exciteabletom)\
**Post date:** [August 27, 2020, 1:07am UTC](https://phaser.discourse.group/t/angle-showing-weird-behaviour-in-phaser-3/7272/4 "2020-08-27T01:07:00Z")

</div>

No problem! Glad you found the issue.
