Type alias Rectangle

Rectangle: {
    angle: number;
    faceNormals: Vector2[];
    height: number;
    type: RECTANGLE;
    vertices: Vector2[];
    width: number;
} & BaseShape

Type declaration

  • angle: number

    The angle of the rectangle

  • faceNormals: Vector2[]

    The normals of the faces of the rectangle

  • height: number

    The height of the body if its a rectangle

  • type: RECTANGLE
  • vertices: Vector2[]

    The vertices of the corners of the rectangle

  • width: number

    The width of the body if its a rectangle