[SOLVED] How can i apply force to specific direction?

I am trying to creating 2d pool game (Top View). I managed to create cue (pool stick) pull and hit animation.

Now i want to add force to the white ball where the cue(pool stick) is facing.

Looking for help. Thanx in advance.


            // Get the forward direction of the entity
            var forwardForce = this.entity.forward.clone();

            // Scale the direction by the amount of force you want to apply

            // Apply the force

For the object to move in a specific direction try looking at this: https://playcanvas.com/project/605986/overview/tutorial-health-bar--main-menu

or have a look at the enemy movement tutorial:
If you need help with conversion please let me know i am glad to help.