Enumeration Casemigueldeicaza.swiftgodot 0.45.0SwiftGodot
concavePolygon
This is the constant for creating concave polygon shapes. A polygon is defined by a list of points. It can be used for intersections checks, but not for inside/outside checks.
PhysicsServer2D.swift:89case concavePolygon
Other cases
case worldBoundary
This is the constant for creating world boundary shapes. A world boundary shape is an infinite line with an origin point, and a normal. Thus, it can be used for front/behind checks.
case separationRay
This is the constant for creating separation ray shapes. A separation ray is defined by a length and separates itself from what is touching its far endpoint. Useful for character controllers.
case segment
This is the constant for creating segment shapes. A segment shape is a finite line from a point A to a point B. It can be checked for intersections.
case circle
This is the constant for creating circle shapes. A circle shape only has a radius. It can be used for intersections and inside/outside checks.
case rectangle
This is the constant for creating rectangle shapes. A rectangle shape is defined by a width and a height. It can be used for intersections and inside/outside checks.
case capsule
This is the constant for creating capsule shapes. A capsule shape is defined by a radius and a length. It can be used for intersections and inside/outside checks.
case convexPolygon
This is the constant for creating convex polygon shapes. A polygon is defined by a list of points. It can be used for intersections and inside/outside checks.
case custom
This constant is used internally by the engine. Any attempt to create this kind of shape results in an error.