The situation is that I am controlling the camera and am swiveling it around a point. However since I have already done all this once in C4 game engine and am porting that I do NOT want to use Ogre transforms in case I ever port again (so don't suggest that please).
I've calculated the direction of the orbit correctly but somehow I am messing up the calculation of the distance in the 2D plane between the focus and the point rotated around the camera.
There's not any point to post my almost but not quite working code because it could be a lot of small issues with it due to the quick and dirty way I did it, and it would be incomprehensible.
So the situation is this:
I know the height, and I know the angle the camera is pointing down (in radians). From there I need to calculate out the distance from the base of the right angle to the focus, so I can know what position to place the camera.
Dumb, I know, but I don't have time to relearn trig tonight and was hoping someone had the answer at their fingertips.
Dumb geometry question: how to find side of right triangle?
-
- Kobold
- Posts: 31
- Joined: Fri May 03, 2013 2:40 am
-
- Kobold
- Posts: 31
- Joined: Fri May 03, 2013 2:40 am
Re: Dumb geometry question: how to find side of right triang
forget it, I found my error.