« * K @friendlycosmonaut.dev

Friendly Cosmonaut @friendlycosmonaut.dev

2026-02-27 07:20 UTC

An essential bit of gamedev math - atan2! We often know a target's position and want to face it. But how do we get the angle? angle = atan2(y / x) Or in 3D... angle = atan2(x / z) (We can also see below, what happens if we use atan instead of atan2) #godot #gamedev

113 likes, 13 reposts, 4 replies

3 Next post4 More from @friendlycosmonaut.devBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup