So as you can imagine when i have to try complex calculations using things like sine that don't make sense it confuses me and i need some help lol.
Basically i have 2 points. In the ck they have an X, Y, Z position. I need to know what the angle between those two points is (it'll only be a couple of degrees), and set the rotation of an object accordingly. The objects are spawned via script, and I'm doing this to take into account the gradient of the ground.
I've looked at frostfall as chesko does some cool stuff, but i don't need anything as complicated. Although I will be using his method of shooting a projectile at the ground at a given position, in order to find out what the first object position will be.
Basically if the result is 10 degrees i want to rotate an object by 10 degrees vertically. Does anyone have the time and knowledge to help a fella out?
