protected override void CreateSceneGraph(ComponentManifest manifest) { SceneGraph = new ActorTransformNode(Owner); SceneNode sphereParent = SceneGraph; Matrix modelAdjustment = Matrix.Identity; if (manifest.Properties.ContainsKey(ManifestKeys.MODEL_ADJUSTMENT)) modelAdjustment = (Matrix)(manifest.Properties[ManifestKeys.MODEL_ADJUSTMENT]); if (modelAdjustment != Matrix.Identity) { sphereParent = new StaticTransformNode(modelAdjustment); SceneGraph.AddChild(sphereParent); } BuildSphereAndGeometryNodes(manifest, sphereParent); }
protected override void CreateSceneGraph(ComponentManifest manifest) { SceneGraph = new ActorTransformNode(Owner); SceneNode sphereParent = SceneGraph; Matrix modelAdjustment = Matrix.Identity; if (manifest.Properties.ContainsKey(ManifestKeys.MODEL_ADJUSTMENT)) { modelAdjustment = (Matrix)(manifest.Properties[ManifestKeys.MODEL_ADJUSTMENT]); } if (modelAdjustment != Matrix.Identity) { sphereParent = new StaticTransformNode(modelAdjustment); SceneGraph.AddChild(sphereParent); } BuildSphereAndGeometryNodes(manifest, sphereParent); }