schveiguy / raylib-d

Resurrected copy of onroundit's raylib-d
zlib License
55 stars 14 forks source link

Update to version 4.0.0 according to generating.md doc. #10

Closed schveiguy closed 2 years ago

schveiguy commented 2 years ago

Ping @ArthaTi if you have a chance to verify. I used your generating.md doc, but of course, raylib 4.0.0 has gotten rid of all the legacy #defines so it's even simpler than the instructions say :)

I tested with a simple application and it worked. Let me know if you have any feedback, even if it's to say you don't have time.

Thanks for your previous help!

schveiguy commented 2 years ago

Oh man I thought I broke something, my game was totally broken with its collision reflection. v4.0.0 angles are now ALWAYS IN RADIANS. I can't imagine that being an easy upgrade for anyone!

schveiguy commented 2 years ago

Not always in Radians, only math features are in radians. Like Vector2Rotate

ArthaTi commented 2 years ago

That's awesome! Seems fine after a quick check but I'm afraid I won't have time to check in "production" this week.

schveiguy commented 2 years ago

Not always in Radians, only math features are in radians. Like Vector2Rotate

Apparently, Vector2Rotate was the only function that was switched to Radians (and it should have been radians before this, it just was missed). Search for uses of that function, and replace with angle * DEG2RAD

schveiguy commented 2 years ago

Pulling for now. If anyone finds issues, I'll fix that.