Skip to content

Math API

These helpers cover the math types you will most likely use in gameplay code.

  • Vec2 is the main 2D vector type.
  • Vec3 is the main 3D vector type.
  • check_collision_point_rec is a small collision helper.

Where to keep reading

  • Open the generated module reference when you want every method and attribute.
  • Open the math guide when you want examples and practical usage.