Working out destination from starting point, angle and power
Bit of a strange problem and I hope i've posted in the correct place.
I am writting a computer game (very basic golf) I have three sliders I can set:
Angle (-90 - 90)
Start position of ball(represented in the code by an x and y co-ordinate)
after each is set, then I hit the button "SHOOT"
I want to know how I can work out the vector from the above (the change in x, and the change in y)
Although it is for a game its the same principle as paper. Imagine a top down view of a piece of graph paper with each line being numbered along the x axis and same on the y
Any help would be really appreciated greatly