struct
Capsule
public sealed struct Capsule A capsule object, defined by 2 points and a radius. A capsule is a cylinder with round ends (inset half spheres on each end).
Constructors
Properties
Methods
static Capsule FromHeightAndRadius(Single height, Single radius) Creates a capsule where Point A is radius units above the ground and Point B is height minus radius units above the ground.
Single GetEdgeDistance(Vector3 localPos) Calculates the distance from a given point to the edge of the capsule.
localPos — Position in the same coordinate space as the capsule Boolean Contains(Vector3 point) Determines if the capsule contains the specified point.
Fields
Assembly:
Sandbox.System Full Name: Capsule