Posted June 06, 2021 by Gizmo199
Fixed an issue where models added to static buffers would be offset when scaled. That is now fixed. You can read more about my idiocy below. lol.
Read more about it here
THE ISSUE:
Okay, so I found an issue with scaling my vertices to buffers in my fauxton engine and I can't seem to wrap my head around what exactly is going on and how to fix it. Here is some visualizations of what is going on:
GML:
var xx = x; var yy = y;
var xx = x - sprite_width/power(image_xscale, image_xscale); var yy = y - sprite_height/power(image_yscale, image_yscale);
The fix: