VecTools
A downloadable tool
Download NowName your own price
VecTools is a 2D and 3D math vector library for GameMaker. It provides Vector2 and Vector3 constructor structs equipped with a full suite of arithmetic, geometric, and interpolation operations. Everything is built around a fluent method-chaining API, allowing you to string together complex mathematical operations cleanly and easily.
Features at a glance:
- Method Chaining: All mutating methods return self, meaning operations can be chained together.
- Scalar Overloads: Most methods accept either another vector or a plain number for quick scalar math.
- Advanced Interpolation: Smoothly transition vectors using linear (Lerp), spherical (Slerp), or fixed-step (Approach) interpolation.
- Comprehensive Math: Includes functions for normalization, dot and cross products, reflection, projection, rotation, and matrix transformations.
Quick Example:
// Chain operations to calculate a velocity vector var _vel = new Vector2(3, 4); _vel.Normalize().Mul(5); // Or clone it to avoid mutating the original var _dir = _vel.Clone().Normalize();
(For source code, full documentation and advanced use cases, please check the repository page).
| Published | 5 days ago |
| Status | Released |
| Category | Tool |
| Author | Krug |
| Tags | GameMaker |
| Content | No generative AI was used |
Download
Download NowName your own price
Click download now to get access to the following files:
VecTools_v1.0.0.yymps 5.6 kB
Leave a comment
Log in with itch.io to leave a comment.