# How i can apply force to a collusion object when a action is pressed?

**URL:** <https://forum.defold.com/t/how-i-can-apply-force-to-a-collusion-object-when-a-action-is-pressed/74516>\
**Category:** Questions\
**Created:** [October 14, 2023, 6:27am UTC](https://forum.defold.com/t/how-i-can-apply-force-to-a-collusion-object-when-a-action-is-pressed/74516 "2023-10-14T06:27:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MinerRafin](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/minerrafin/32/28472_2.png) [@MinerRafin](https://forum.defold.com/u/MinerRafin)\
**Post date:** [October 14, 2023, 6:27am UTC](https://forum.defold.com/t/how-i-can-apply-force-to-a-collusion-object-when-a-action-is-pressed/74516/1 "2023-10-14T06:27:11Z")

</div>

i want to apply force to my game obj to move it left and right when a key action is pressed but how i can do it i need help.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [October 14, 2023, 4:18pm UTC](https://forum.defold.com/t/how-i-can-apply-force-to-a-collusion-object-when-a-action-is-pressed/74516/2 "2023-10-14T16:18:02Z")

</div>

What have you tried so far?

You have an example of movement using keys here: [8 ways movement](https://defold.com/examples/input/move/)

And here’s how you apply a force: [API reference (Collision object)](https://defold.com/ref/stable/physics/#apply_force)
