Tag Info

New answers tagged

1

The answer to this problem: Get the dot product of the player's left direction with the direction from the player to the shooter. That'll be positive if the shooter is to the player's left, or negative if the shooter is to the player's right. In general, learn about useful linear algebra operations like dot and cross product. Start here ...


3

To measure framerate you need two counts: How many frames (not draw calls) have passed, and, How much time has passed. Your framerate is therefore calculated as: frames / time There are a few subtle complexities to this. First thing is that you need a good, accurate, high resolution timer. You don't say what platform you're on so I'm not going to ...



Top 50 recent answers are included