← All blogs

Creating my own physics types system (Battlebeyz part 5)

WIP! Last updated Oct 26 2025 while I am still updating my site

Writing my Own PHysics Types System

Write Dimension = Template<int, int, int, int> Write Quantity = Template\<D, T\> = Template<Dimension, float>

Used to write Vec3Quantity = Template<Q> where stored vec3 and of templated type Quantity HOWEVER, Then doing Vec3Quantity * Vec3Quanitty was not recoverable since I had no way of retrieving the dimension to combine them (static assert)

New version: Write Vec3Quantity = Template<D, T> like Dimension

Rename Direct Usage of Vec3Quantity<M> -> Secondary Macro Vec3_M = Quantity<Dimension<1, 0, 0, 0>, float>