ImmutableOctet / glare

Glare: Open Source Game Engine written in Modern C++
MIT License
0 stars 0 forks source link

Implement an easy to use transform API which mimics the current entity `Transform` API, but for internally stored matrices. #88

Open ImmutableOctet opened 4 months ago

ImmutableOctet commented 4 months ago

We should be able to manipulate a 4x4 matrix using a Transform object without directly affecting an entity and its caches.

This standalone type would take a reference to a Matrix object and affect it as operations are performed. We could then have a derived class which stores data internally as well, allowing for implicit conversion to Matrix, copies of the transform, etc.

The entity-based Transform type could have an assignment operator which takes this new type as an input.

The API for this new Transform type would be very similar to the existing entity-based solution.

ImmutableOctet commented 4 months ago