21 years, 5 months ago
Highlights
21 years, 5 months ago
21 years, 5 months ago
This is a 3D problem that I am trying to solve. I have a scenario where I need to be able to travel in a direction (v) while maintaining a line of sight with a point in 3D space…
21 years, 5 months ago
21 years, 5 months ago
Quote:Original post by jykHm. If the z components of the camera and target positions are nearly equal, the expression atan2(d.z, sqrt(d.x*d.x+d.y*d.y)) should return nearly 0. I…
21 years, 5 months ago
Latest Activity
See all in DiscussionsQuote:Original post by jykHm. If the z components of the camera and target positions are nearly equal, the expression atan2(d.z, …
21 years, 5 months ago
Quote:Original post by jykdeltaYaw = atan2(c*d.y-s*d.x, c*d.x+s*d.y);deltaPitch = atan2(d.z, sqrt(d.x*d.x+d.y*d.y)) - pitch;I had to change deltaYaw to deltaYaw = atan2(c*d.x()-s*d.y(), …
21 years, 5 months ago
Quote:Original post by jykI'm wondering, though...here is the code you posted for finding v:v.x = cos(alpha) * cos(beta);v.y = sin(beta);v.z …
21 years, 5 months ago