Does this help at all? [wiki]Cos[/wiki]Apothem wrote:How do I triangulate a camera again? I remember figuring this out previously, but I forgot how the math works. Funny part is I'm pretty sure I was the one who originally came up with it.
I've been messing with the following snippet:
SetActorPosition(2, x-cos(a)*xyr, y-sin(a)*xyr, z+512.0, 0);
I havent been able to figure out what exactly is going on with cos(a)*xyr and what exactly it's doing there. It's been so long since I've messed with this.
In case anyone is wondering where that snippet is from it's located in the article about the [wiki]Cleaned-up_third_person_camera[/wiki]
I'm referring to the example in that article. So basically :
Code: Select all
SetActorPosition(2, x + cos (angle + 0.5) * 80, y + sin (angle + 0.5) * 80, z + 80.0, 0);