Exemple #1
0
 public override Vector3 intersects(CollisionVolume other)
 {
     if(other.GetType() == typeof(CollisionCylinder))
     {
         return intersects((CollisionCylinder)other);
     }
     else
     {
         return intersects((CollisionBox)other);
     }
 }
Exemple #2
0
 public void addBoundingVolume(float height, float radius, Vector3 offsetPosition)
 {
     this.BoundingVolume = new CollisionCylinder(this, height, radius, offsetPosition);
 }
Exemple #3
0
 public abstract Vector3 intersects(CollisionVolume other);