private RendererBase GetPropellerFlabellum() { var propeller = PropellerRenderer.Create(); propeller.Children.Add(new LegacyBoundingBoxRenderer(propeller.ModelSize)); var xflabellum = FlabellumRenderer.Create(); xflabellum.WorldPosition = new vec3(2, 0, 0); xflabellum.Children.Add(new LegacyBoundingBoxRenderer(xflabellum.ModelSize)); var nxflabellum = FlabellumRenderer.Create(); nxflabellum.WorldPosition = new vec3(-2, 0, 0); nxflabellum.RotationAngle = 180; nxflabellum.Children.Add(new LegacyBoundingBoxRenderer(nxflabellum.ModelSize)); var zflabellum = FlabellumRenderer.Create(); zflabellum.WorldPosition = new vec3(0, 0, -2); zflabellum.RotationAngle = 90; zflabellum.Children.Add(new LegacyBoundingBoxRenderer(zflabellum.ModelSize)); var nzflabellum = FlabellumRenderer.Create(); nzflabellum.WorldPosition = new vec3(0, 0, 2); nzflabellum.RotationAngle = 270; nzflabellum.Children.Add(new LegacyBoundingBoxRenderer(nzflabellum.ModelSize)); propeller.Children.Add(xflabellum); propeller.Children.Add(nxflabellum); propeller.Children.Add(zflabellum); propeller.Children.Add(nzflabellum); return(propeller); }
private SceneNodeBase GetPropellerLegacyFlabellum() { var propeller = PropellerRenderer.Create(); propeller.Children.Add(new LegacyBoundingBoxNode(propeller.ModelSize)); var xflabellum = new LegacyFlabellumNode() { WorldPosition = new vec3(2, 0, 0) }; xflabellum.Children.Add(new LegacyBoundingBoxNode(xflabellum.ModelSize)); var nxflabellum = new LegacyFlabellumNode() { WorldPosition = new vec3(-2, 0, 0), RotationAngle = 180, }; nxflabellum.Children.Add(new LegacyBoundingBoxNode(nxflabellum.ModelSize)); var zflabellum = new LegacyFlabellumNode() { WorldPosition = new vec3(0, 0, -2), RotationAngle = 90, }; zflabellum.Children.Add(new LegacyBoundingBoxNode(zflabellum.ModelSize)); var nzflabellum = new LegacyFlabellumNode() { WorldPosition = new vec3(0, 0, 2), RotationAngle = 270, }; nzflabellum.Children.Add(new LegacyBoundingBoxNode(nzflabellum.ModelSize)); propeller.Children.Add(xflabellum); propeller.Children.Add(nxflabellum); propeller.Children.Add(zflabellum); propeller.Children.Add(nzflabellum); return(propeller); }