4 ms·
The abstraction Unity provides allows you to do neat things without fully understanding the math behind it. But if you don't also learn the math, now you are li
by cvoss 4y ago
The abstraction Unity provides allows you to do neat things without fully understanding the math behind it. But if you don't also learn the math, now you are limited by what those abstractions allow you to do and by the performance cost due to the fact that these abtractions can't make good use of special-case information that would be available to you if you handcrafted the operation.
It is perfectly legitimate to rely on abstractions a lot of the time because it's safe and easy, and _also_ want to roll your own manipulations sometimes, because 1) when you're accustomed to solving weird trig problems with trig, that's the most straightforward way to write the code, or 2) for performance, which, for a game developer, I think ought to be a major concern.
- roywiggins 4y agoIt's super common for people to reach for trig to solve geometry problems when they should be using vector arithmetic instead, eg this answer on SO has to special-case vertical/horizontal lines, which can be avoided entirely if it didn't reach for trig in the first place. https://stackoverflow.com/a/63673261 https://stackoverflow.com/a/63673261 I think this is the sort of situation that GP is referring to.