public SceneNode(String name = "scene node") { mName = name; mXform = new XformInfo(); mShapes = new List <Shape>(); mChildren = new List <SceneNode>(); mShowPivot = false; mPivotShape = new AxisShape(); mPivotShape.Xform.Scale = new Vector3(5f); }
public Shape() { mCenter = Vector3.Zero; mColor = Color.Red; mXform = new XformInfo(); mPivot = null; // only allocate if wants to draw, instantiate now creates a infinite construction mDrawPivot = false; AllocateVertices(); ComputeVertexPosition(); mEffectOnDevice = new Dictionary <GraphicsDevice, BasicEffect>(); }