
I'm having a little problem with some programming. The language I choose to use only offers the option to set a destination of where an object starts and ends according to coordinates of the map.
I know that the object being created will start at where the player is, and I know how far it will travel. What I dont know, is how to work out where it will end.
The function im uses syntax like:
CreatePath( StartX, StartY, StartZ, NewX, NewY, NewZ )
All I need to know, is the formula that can be used in NewX, NewY and NewZ, although the NewZ parameter will not be used for this object.
I have tried playing around with Cos and Sin, but I really dont understand what is going on with it.
If anyone understand the problem and could explain it, please do.
I will be happy to explain further the problem I'm having and answer any questions as its rather important for my learning.
Thanks for reading.