I’ve seen a couple posts on this topic, but I’m a little hazy, so I was hoping someone could explain it to me with an example.
I get the general idea, that these functions convert from world to local space. But let’s say, for example, I’m making an asteroids-style game (but with enemies… stretching the concept to make this example work). I want enemies to aim their bombs for a space directly in front of the player, regardless of the player’s orientation. How would I accomplish this with these functions?
I don’t see a good reason to use those functions for the problem you described. In fact we would want the opposite - to convert a local position to a world position. The simplest way would probably be: