protected override void Initialize() { ModelDrawer = new InstancedModelDrawer(this); ConstraintDrawer = new LineDrawer(this); ConstraintDrawer.DisplayTypes.Add(typeof(GrabSpring), typeof(DisplayGrabSpring)); ConstraintDrawer.DisplayTypes.Add(typeof(MotorizedGrabSpring), typeof(DisplayMotorizedGrabSpring)); ContactDrawer = new ContactDrawer(this); BoundingBoxDrawer = new BoundingBoxDrawer(this); SimulationIslandDrawer = new SimulationIslandDrawer(this); base.Initialize(); }
public BEPUPhysicsRenderer(IManagerServiceProvider sceneInterface) { _sceneInterface = sceneInterface; ManagerProcessOrder = 100; ModelDrawer = new InstancedModelDrawer(Application.Instance); ContactDrawer = new ContactDrawer(Application.Instance); BoundingBoxDrawer = new BoundingBoxDrawer(Application.Instance); SimulationIslandDrawer = new SimulationIslandDrawer(Application.Instance); LineDrawer = new BasicEffect(Application.Graphics.GraphicsDevice); Visible = true; }
protected override void Initialize() { if (GraphicsDevice.GraphicsProfile == GraphicsProfile.HiDef) ModelDrawer = new InstancedModelDrawer(this); else ModelDrawer = new BruteModelDrawer(this); ConstraintDrawer = new LineDrawer(this); ConstraintDrawer.DisplayTypes.Add(typeof(GrabSpring), typeof(DisplayGrabSpring)); ConstraintDrawer.DisplayTypes.Add(typeof(MotorizedGrabSpring), typeof(DisplayMotorizedGrabSpring)); ContactDrawer = new ContactDrawer(this); BoundingBoxDrawer = new BoundingBoxDrawer(this); SimulationIslandDrawer = new SimulationIslandDrawer(this); base.Initialize(); }