@techartonline I mean, yes, this is kind of obvious, isn't it? If all the models are playing the same animation data, just store the animation data once instead of storing a copy for each model.
Added angle snapping. I'm effectively computing a direction vector from the object to the mouse position, snapping it to .707 increments, and renormalizing. This gives 45-degree snapping with no explicit trig.
@TahaTorabpour Unfortunately, this kills your ability to pattern match by looking at the code. There is a reason mathematics uses single-letter variable names.
Got rid of the rest of the explicit trig function calls; instead of a rotation matrix, the view transform now uses planar rotations. The view rotation is stored as two vectors: cos(theta)-1, sin(theta) and cos(phi)-1, sin(phi).
@SanderSkjegstad How's the consulting market in Norway? From what I've observed, it's mostly web backend work in the healthcare sector ... not many people are looking for C programmers and the like!
Work on particle physics: you can get a lot of mileage out of a few rules: 1. constant downward force, 2. particles may not overlap, 3. particles move at a constant velocity. Velocity is the displacement between adjacent frames, so it can even be implicit.