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:
@@ -775,14 +775,16 @@ ICameraSceneNode* CSceneManager::addCameraSceneNode(ISceneNode* parent,
|
||||
//! The returned pointer must not be dropped.
|
||||
ICameraSceneNode* CSceneManager::addCameraSceneNodeMaya(ISceneNode* parent,
|
||||
f32 rotateSpeed, f32 zoomSpeed, f32 translationSpeed, s32 id, f32 distance,
|
||||
bool makeActive)
|
||||
bool makeActive
|
||||
, f32 rotX, f32 rotY)
|
||||
{
|
||||
ICameraSceneNode* node = addCameraSceneNode(parent, core::vector3df(),
|
||||
core::vector3df(0,0,100), id, makeActive);
|
||||
if (node)
|
||||
{
|
||||
ISceneNodeAnimator* anm = new CSceneNodeAnimatorCameraMaya(CursorControl,
|
||||
rotateSpeed, zoomSpeed, translationSpeed, distance);
|
||||
rotateSpeed, zoomSpeed, translationSpeed, distance
|
||||
,rotX,rotY);
|
||||
|
||||
node->addAnimator(anm);
|
||||
anm->drop();
|
||||
|
Reference in New Issue
Block a user