I wanted to create an isometric view, but I couldn’t find a proper way to do it, so I had to copy and paste the CameraHorizontalRotation code from the related demo into my own project.
Where can I find more information about CameraHorizontalRotation?
The CameraHorizontalRotation is defined in our example project isometric_game_3d/code/.
It literally just rotates the regular 2D camera, as you can see in the editor. There’s not much more to document ![]()
Follow our manual about viewports, cameras (in particular read " 3. Camera can have children, and be a child of other objects") and play with transformations and cameras to understand them.
Note that the project contains additional Pascal code to play with other CameraHorizontalRotation.Rotation values (since various rotations make sense), doing:
CameraHorizontalRotation.Rotation := Vector4(0, 1, 0, Pi / 4 + Pi / 2 * CameraRot);
It you’re not sure what this means, read API docs of TCastleTransform.Rotation.
1 Like
