Esempio n. 1
0
 public void AddIntersectLines(List <Point> points, Obstacle forObstacle, MovementMechanism forMechanism)
 {
     manager.AddIntersectLines(points, surfaceIndex, forObstacle, forMechanism);
 }
Esempio n. 2
0
        //public abstract Hitbox ExpandByHitbox(Hitbox hitbox, Rotation rotation);

        //TODO: This probably goes elsewhere. Finds all obstacles nearby this obstacle, has each of those call MarkIntersectWithSurface on own surface with specified vehicle.
        //public void MarkIntersectWithNearbyObstacles(int ownSurfaceIndex, Hitbox vehicle);
        //TODO: Hitbox needs a size and offset. Worst case scenario is basically another obstacle.
        //  Actually on second thought, offset can be applied AFTER this, and for different offsets. Doesn't need to be appllied to generate the total 3D overlap of an obstacle.
        public abstract void MarkIntersectWithSurface(ObstacleSurface otherSurface, MovementMechanism forMechanism);