allegro5
allegro5 copied to clipboard
3D Coordinate System?
just curious and would like to know if the 3D coordinate system is left or right hand?
The default coordinate system is right handed (x-right, y-down, z into the screen).
Is switching to DirectX all I have to do if I want a left-handed coordinate system?
The coordinate system is governed by the camera matrix used. I'm guessing you pass in the appropriate up vector to al_build_camera_transform
, and then negate the x-axis via al_scale_transform_3d
.