Open Dovyski opened 10 years ago
Feel free to borrow some code from HaxeFlixel's FlxVector. :)
Consider it done! :) There are even more methods than I could thing of. Thanks!
I added FlxVector
to the FlxMath
spreadsheet to make things easier to organize:
Currently
FlxPoint
has one or two methods that can be used in math vector calculations. It's pretty hard to implement vector dependent functionalities using Flixel, such as steering behaviors. Useful methods such asrotate()
,normalize()
,perp()
,dot()
,cross()
, etc are missing.It would be great to have them. If they "clutter" the API, the
FlxVector
class could be created.