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(-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 }