Advertisement

I'm really bad at trig

Started by April 18, 2005 08:04 AM
10 comments, last by Alpha_ProgDes 19 years, 7 months ago
Try using angles in radians. Most math libraries implement all trigonometry using radians. Part one rotates the vector such that it points from the origin into the direction of the end point. Part two then adjusts the lenght such that it exactly indicates the end point.

Greetz,

Illco
is this a polar coordinate way to solve the problem?
i thought initially that you could use the dot product.

(i guess that's why i'm sticking with 2D)

Beginner in Game Development?  Read here. And read here.

 

This topic is closed to new replies.

Advertisement