[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.

Solved!

            // 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
            forwardForce.scale(4000);

            // Apply the force
            this.white_ball.rigidbody.applyForce(forwardForce);

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:
https://playcanvas.com/project/344162/overview/answers-enemy-movement
If you need help with conversion please let me know i am glad to help.