Here is the thing a round object is falling. You can click anywhere and a star appears. If the star touches the objects it is projected up on the y axis.
I would like the object to be projected depending of the angle between the star and the center of that said object. Because when the object collides with the star it's always projected perfect on the y axis.
Do you have any formula?