math-types

Document Bestow's native math and spatial types with usage examples.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/radical-beard/bestow --skill math-types
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: math-types
Source: https://github.com/radical-beard/bestow/tree/main/template/.claude/skills/math-types
Command: npx skills add https://github.com/radical-beard/bestow --skill math-types

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive documentation and usage examples for Bestow's built-in mathematical and spatial types, enabling precise control over game development elements.

Core Features & Use Cases

  • Vector Operations: Utilize Vec2, Vec3, and Vec4 for 2D and 3D positional data, direction, and scaling.
  • Rotations & Transformations: Employ Quaternions (Quat) for 3D rotations and Mat4 for matrix transformations, including translation, rotation, and scaling (TRS).
  • Spatial Calculations: Work with AABB3D for bounding boxes and Ray3D for raycasting, essential for physics and collision detection.
  • Color Manipulation: Use the Color type for managing RGBA values.
  • Use Case: When implementing character movement, you'll use Vec3 for position, Quat for rotation, and potentially AABB3D for collision detection.

Quick Start

Refer to the math-types skill to understand how to construct and use Vec3 for 3D positions.

Frequently Asked Questions about math-types

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use vectors and quaternions for 3D character movement in the Bestow game engine?

For 3D character movement, you use Vec3 for position scaling, Quat for 3D rotations, and AABB3D for collision detection. This Skill documents their construction, fields, methods, and common usage patterns.

What is the best way to calculate matrix transformations and bounding boxes in Bestow?

The best way to calculate matrix transformations and bounding boxes in Bestow is using Mat4 for TRS operations and AABB3D for spatial calculations. This Skill demonstrates their methods and operators.

How do I handle raycasting and spatial calculations in Bestow?

To handle raycasting and spatial calculations in Bestow, you use the Ray3D type for raycasting and AABB3D for bounding box calculations. This Skill covers their construction and usage examples for physics and collision detection.

Can I manage RGBA color values using native Bestow math types?

Yes, you can manage RGBA color values using the native Bestow Color type. This Skill documents how to construct and manipulate Color objects alongside other spatial types like Vec2, Vec3, and Vec4.

Does Bestow support 2D and 3D transformations with native math types?

Yes, Bestow supports 2D and 3D transformations natively using Transform2D and Transform3D types. This Skill demonstrates how to apply vector math, rotations, and spatial calculations for both dimensions.