New answers tagged

0

The math for calculating this local basis in 2D is actually pretty straightforward: localUp = normalize(myPos - planetCenter); localRight = new vector2(-localUp.y, localUp.x); This gives you two perpendicular vectors of unit length, which you can use to apply movement to your character toward/away from the planet or around it tangentially. Edit: as ...



Top 50 recent answers are included