Click or drag to resize

Physics2DServerShapeType Enumeration

[Missing <summary> documentation for "T:Godot.Physics2DServer.ShapeType"]

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public enum ShapeType
Members
  Member nameValueDescription
Line0

This is the constant for creating line shapes. A line shape is an infinite line with an origin point, and a normal. Thus, it can be used for front/behind checks.

Ray1
Segment2

This is the constant for creating segment shapes. A segment shape is a line from a point A to a point B. It can be checked for intersections.

Circle3

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.

Rectangle4

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.

Capsule5

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.

ConvexPolygon6

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. Unlike the Polygon property, polygons modified with ShapeSetData(RID, Object) do not verify that the points supplied form is a convex polygon.

ConcavePolygon7

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.

Custom8

This constant is used internally by the engine. Any attempt to create this kind of shape results in an error.

See Also