public void CrearColisiones() { Collision.AddCollisionPoint(new Point3D(1.5f, 9.0f, 0), 2); Collision.AddCollisionPoint(new Point3D(-0.35f, -3.97f, 0), 0.3f); Collision.AddCollisionSegment(new Point3D(-14.4f, 28.3f, 0), new Point3D(-14.5f, -11.6f, 0), 0.5f); Collision.AddCollisionSegment(new Point3D(-14.4f, -11.6f, 0), new Point3D(20.1f, -11.7f, 0), 0.5f); }
public void CrearColisiones() { Collision.AddCollisionSegment(new Point3D(-8.7f, -28.5f, 0), new Point3D(-8.7f, 20.9f, 0), 1); //derecha Collision.AddCollisionSegment(new Point3D(-8.7f, 20.9f, 0), new Point3D(10.3f, 20.9f, 0), 1); //pizarra Collision.AddCollisionSegment(new Point3D(10.3f, 20.9f, 0), new Point3D(10.3f, -28.5f, 0), 1); // izquierda Collision.AddCollisionSegment(new Point3D(10.3f, -28.5f, 0), new Point3D(-8.7f, -28.5f, 0), 1); //atras Collision.AddCollisionSegment(new Point3D(3.5f, -13, 0), new Point3D(10.3f, -13, 0), 1); //entrada izquierda Collision.AddCollisionSegment(new Point3D(1.3f, -13, 0), new Point3D(-8.7f, -13, 0), 1); //entrada derecha }
public void CreateCollisions() { Collision.AddCollisionSegment(new Vector2F(-24.4f, -14.1f), new Vector2F(18.9f, -14.1f), 0.8f); Collision.AddCollisionSegment(new Vector2F(-24.4f, -14.1f), new Vector2F(-24.4f, 13.2f), 0.8f); Collision.AddCollisionSegment(new Vector2F(-20.2f, -0.1f), new Vector2F(-4.8f, -0.1f), 0.8f); Collision.AddCollisionSegment(new Vector2F(-0.5f, 0.7f), new Vector2F(-0.5f, -8.7f), 0.8f); Collision.AddCollisionSegment(new Vector2F(19.4f, 14.4f), new Vector2F(-24.4f, 14.4f), 0.8f); Collision.AddCollisionSegment(new Vector2F(19.4f, 14.4f), new Vector2F(19.4f, -14.4f), 0.8f); Collision.AddCollisionSegment(new Vector2F(-17.5f, 0.5f), new Vector2F(-17.5f, 11), 0.8f); Collision.AddCollisionSegment(new Vector2F(13.4f, -0.15f), new Vector2F(18.74f, -0.15f), 0.8f); Collision.AddCollisionSegment(new Vector2F(-0.43f, -9.1f), new Vector2F(12.4f, -9.1f), 0.8f); //Collision.GhostMode = true; }
public void CrearColisiones() { Collision.AddCollisionSegment(new Point3D(-3.02f, -1.02f, 0), new Point3D(2.21f, -1.30f, 0), 0.5f);//torno CollisionPoint c = new CollisionPoint(); c.ColitionDistance = 2; c.enabled = true; c.point = new Point3D(-14.59f, -0.68f, 0); Collision.AddCollisionPoint(c); Collision.AddCollisionSegment(new Point3D(-21.98f, 34.08f, 0), new Point3D(-22.27f, -14.35f, 0), 1); //pared lateral Collision.AddCollisionSegment(new Point3D(-22.27f, -14.35f, 0), new Point3D(14.28f, -14.85f, 0), 1); // pared del ventilador }