3D Visualization - Camera Orientation
Posted: Sat Jan 02, 2016 4:12 am
CameraDirectionX() and the other two vectors:
Documentation says
Return value
Returns the 'x' direction vector of the camera. This value is always between -1.0 and 1.0.
Since a direction vector cannot be specified with a scalar this should return 3 components specifying the vector.
Also there should be a function to set the direction for the X axis of the camera like SetCameraXDirection(x,y,z).
Using CameraLookAt the Z axis can be specified. Then there is no need to specify the Y direction when the X and Z have already been specified. Instead of X we should have the option to set the Y axis of the camera. Mostly this would be directed parallel to the world Z axis, or upward ( if you use Z coordinate of the World perpendicular to the ground).
Thanks
Documentation says
Return value
Returns the 'x' direction vector of the camera. This value is always between -1.0 and 1.0.
Since a direction vector cannot be specified with a scalar this should return 3 components specifying the vector.
Also there should be a function to set the direction for the X axis of the camera like SetCameraXDirection(x,y,z).
Using CameraLookAt the Z axis can be specified. Then there is no need to specify the Y direction when the X and Z have already been specified. Instead of X we should have the option to set the Y axis of the camera. Mostly this would be directed parallel to the world Z axis, or upward ( if you use Z coordinate of the World perpendicular to the ground).
Thanks