Very weird behavior... Assigning to target only crashes if the math above it is performed. If the math is not performed, then it won't crash. I'm not sure how doing that math could affect target. Maybe the my_sin and my_cos functions are broken, however they are also used for determining the bullet angle, which does work.
This is the reason that makeScaleMatrix works however, and makeRotationMatrix does not.
See commit here: https://github.com/vgmoose/space/commit/961eb9cf5f980a1d2cedefb3b5c3602faa0bea3a
Very weird behavior... Assigning to target only crashes if the math above it is performed. If the math is not performed, then it won't crash. I'm not sure how doing that math could affect target. Maybe the my_sin and my_cos functions are broken, however they are also used for determining the bullet angle, which does work.
This is the reason that makeScaleMatrix works however, and makeRotationMatrix does not.
@xhp-creations any insight? 😅