public Camera(string name, SceneManager sceneManager)
: base(name)
{
// Record name & SceneManager
SceneManager = sceneManager;
// Init camera location & direction
// Point down -Z axis
orientation = Quaternion.Identity;
position = Vector3.Zero;
// Reasonable defaults to camera params
PolygonMode = PolygonMode.Solid;
// Init no tracking
AutoTrackingTarget = null;
AutoTrackingOffset = Vector3.Zero;
// default these to 1 so Lod default to normal
sceneLodFactor = invSceneLodFactor = 1.0f;
useRenderingDistance = true;
FieldOfView = (float)System.Math.PI / 4.0f;
Near = 100.0f;
Far = 100000.0f;
AspectRatio = 1.33333333333333f;
ProjectionType = Projection.Perspective;
//SetFixedYawAxis( true );
FixedYawAxis = Vector3.UnitY; // Axiom specific
derivedOrientation = Quaternion.Identity;
InvalidateFrustum();
InvalidateView();
ViewMatrix = Matrix4.Zero;
ProjectionMatrix = Matrix4.Zero;
parentNode = null;
isReflected = false;
isVisible = false;
}