Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 903

Getting a v3 from an angle.

$
0
0
Ok, a better explanation.

I'm vector stupid.

Below is a picture of what I have. the v3.Position is in world coordinates. All other vectors are normalized. a= Azimuth, e=Elevation. When the angle is at 0,0 it's pointing in the same direction as v3.Forward.

What I need is a normalized v3 of that angle that somehow adds in the v3.Forward to give a world vector. Vector3.CreateFromAzimuthAndElevation will give me a v3 that's 0 based on the v3.Position.

Any trig experts out there?...

Getting a v3 from an angle.

Viewing all articles
Browse latest Browse all 903

Trending Articles