Tilemap.slideContact

Determine the furthest a region can move without hitting a wall

  1. Vector slideContact(float x, float y, float width, float height, Vector v)
    struct Tilemap(T)
    @nogc nothrow pure const
    slideContact
    (
    in float x
    ,
    in float y
    ,
    in float width
    ,
    in float height
    ,)
  2. Vector slideContact(Rectangle rect, Vector vec)

Meta