Vector Math?

Quick question :slight_smile:

Does Corona have built in support for vector math? Or is anyone aware of any Corona-friendly vector math libraries? I just want to be able to add, subtract, multiply, and compare two dimensional vectors.

Thank you :slight_smile: [import]uid: 82003 topic_id: 27572 reply_id: 327572[/import]

No built in vector math, but the math behind it is so simple that you can easily incorporate your own functions for it - or use one of the libraries already made. I always just incorporate into one of my player or enemy movement functions straight away.

Cheers,
Thomas [import]uid: 70134 topic_id: 27572 reply_id: 111985[/import]

Thanks for the quick response, Thomas! I ended up just whipping up the functions myself. I guess I was just hoping I wouldnโ€™t have to reinvent the wheel, even if itโ€™s super simple stuff :smiley: [import]uid: 82003 topic_id: 27572 reply_id: 112093[/import]