# Velocity related to direction of collision

**URL:** <https://phaser.discourse.group/t/velocity-related-to-direction-of-collision/10089>\
**Category:** Phaser 3\
**Created:** [August 9, 2021, 3:49pm UTC](https://phaser.discourse.group/t/velocity-related-to-direction-of-collision/10089 "2021-08-09T15:49:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MajorKuprich](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@MajorKuprich](https://phaser.discourse.group/u/MajorKuprich)\
**Post date:** [August 9, 2021, 3:49pm UTC](https://phaser.discourse.group/t/velocity-related-to-direction-of-collision/10089/1 "2021-08-09T15:49:12Z")

</div>

Hello all,

How can I move sprite (black circle) **forward** with specific Velocity depend on side from which I touches sprite by another sprite (red circle with white arrow)?

![base](https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/a/a4a4c1c65229aa9a8f8bc0321a4cb1b64b05283b.png)

Examples (red arrow indicates path which black ball moves on):

 ![direction1](https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/4/4f39eefe779380ae3f17988d1cb64fa1559c7b2d.png)

![direction2](https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/0/07bfef793d5595a94a7adfd0c8bbfa9f8a9bfea1.png)

I use Arcade Physics.

---

<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:** [August 9, 2021, 3:52pm UTC](https://phaser.discourse.group/t/velocity-related-to-direction-of-collision/10089/2 "2021-08-09T15:52:57Z")

</div>

Just use circular bodies and velocity. You don’t need to do anything else.

[https://phaser.io/examples/v3/view/physics/arcade/circular-collisions](https://phaser.io/examples/v3/view/physics/arcade/circular-collisions)

---

<div class="post-metadata">

**Author:** ![MajorKuprich](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@MajorKuprich](https://phaser.discourse.group/u/MajorKuprich)\
**Post date:** [August 22, 2021, 2:20pm UTC](https://phaser.discourse.group/t/velocity-related-to-direction-of-collision/10089/3 "2021-08-22T14:20:26Z")

</div>

I’ve solved it by change physics to MatterJS and using this solution to calc velocity between 2 points: [Is it possible to use 'sprite move to another sprite' on Matter.js?](https://phaser.discourse.group/t/is-it-possible-to-use-sprite-move-to-another-sprite-on-matter-js/2367).
