vgmoose / wiiu-space

[Wii U] Homebrew space shooter written with libwiiu
MIT License
26 stars 5 forks source link

[HBL] Crashes when rotating! #6

Closed vgmoose closed 8 years ago

vgmoose commented 8 years ago

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? 😅

vgmoose commented 8 years ago

Fixed in https://github.com/vgmoose/space/commit/a38b3b42d07caa21a1373150d4293288ba72d15c