mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-02 00:00:26 +02:00
a) debug Camera Matrices. enable with _IRR_COMPILE_WITH_90_DEGREE_CAMERA.
- allow ICameraSceneNode to accept any values and correct in buildCameraLookAtMatrixLH with normalize_camera_direction. if disabled defaults to the current v1.9 normalize b) add initial Rotation to MayaCamera Constructor default 0,0 c) switchToMayaCamera in Examples. Clones FPSCamera default disabled git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6366 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
@ -1908,10 +1908,10 @@ namespace core
|
||||
const vector3df& upVector)
|
||||
{
|
||||
vector3df zaxis = target - position;
|
||||
zaxis.normalize();
|
||||
zaxis.normalize_z();
|
||||
|
||||
vector3df xaxis = upVector.crossProduct(zaxis);
|
||||
xaxis.normalize();
|
||||
vector3df xaxis = normalize_y(upVector).crossProduct(zaxis);
|
||||
xaxis.normalize_x();
|
||||
|
||||
vector3df yaxis = zaxis.crossProduct(xaxis);
|
||||
|
||||
|
Reference in New Issue
Block a user