Beispiel #1
0
 public static void add(Capsule c, Vector3 p)
 {
     c.origin.x += p.x;
     c.origin.y += p.y;
     c.origin.z += p.z;
 }
Beispiel #2
0
 public static void sub(Capsule c, Vector3 p)
 {
     c.origin.x -= p.x;
     c.origin.y -= p.y;
     c.origin.z -= p.z;
 }
Beispiel #3
0
 public Capsule(Capsule capsule)
 {
     origin    = new Vector3(capsule.origin);
     direction = new Vector3(capsule.direction);
     radius    = capsule.radius;
 }