HxGodot / hxgodot

A Haxe GDExtension for Godot 4
MIT License
232 stars 11 forks source link

Vector2 implementation #23

Closed Greg209 closed 1 year ago

Greg209 commented 1 year ago

This is a complete (as far as I can tell) implementation of Vector2. It has all the C++ functions moved over to Haxe. It also include the supporting Maths function which are not currently implemented in Haxe, along with some maths constants which are exposed globally through the import.hx feature.

I've tested the functions locally and compared the Haxe output to the Godot output and all match. Note: there are a few functions available in C++ which are included but aren't exposed to GDScript, so these haven't been compared as yet.

Other type implementations will follow.....

Also - this PR seems to also reference the commit from yesterday in the other PR, but I don't know why.