Finished the basic transforms.
All extend the Transform class, which is ready for translation, scaling and rotation, but currently scaling is unused. It also provides helpful utility methods for using matrices created by it’s subclass to selectively apply the transform to provided vectors, and to get the coordinate system basis vectors (forward, right and up), with choice between camera space or world space, and scaling them or not.
I also created 7 subclasses, providing partial transformation support (just translation; rotations along single, two or three axes: and translation with rotation). I’m using very descriptive class names, with Pxyz meaning “Position with X, Y and Z coordinates”, and Rxyz meaning “Rotation around X (Pitch), Y (Yaw) and Z (Roll)”. From this I get names like Transform_Pxyz_Rxyz for general position and rotation, and Transform_Rxy for rotation without roll.
Finally I also updated the camera to use the transforms, but there is nothing visually changed that could be showcased
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.