PhysicsShape.ShapeType
The type of shape. Some shapes are "closed" meaning they have an interior which will produce contacts. Some shapes are "open" meaning they do not have an interior and will only produce contacts when their boundary is intersected.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Enum
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public enum PhysicsShape.ShapeType
Fields
Value | Description |
|---|---|
| Capsule | A capsule is an extruded circle. This is a closed shape. See CapsuleGeometry. |
| ChainSegment | A Chain of line segments that are joined together with other line segments. This is an open shape. This is indirectly created and owned by a chain. See ChainSegmentGeometry and ChainGeometry. |
| Circle | A circle with an offset. This is a closed shape. See CircleGeometry. |
| Polygon | A convex polygon. This is a closed shape. See PolygonGeometry. |
| Segment | A line segment. This is an open shape. See SegmentGeometry. |