API Referenceglobal
Capsuleclass
A capsule object, defined by 2 points and a radius. A capsule is a cylinder with round ends (inset half spheres on each end).
object→Capsule
Constructors1
Showing 1 constructors
No results match this filter.
Methods3
Showing 3 methods
public bool Contains(Vector3 point)
Determines if the capsule contains the specified point.
| Parameter | Type | Description |
|---|---|---|
| point | Vector3 | — |
Returns:
bool—public static Capsule FromHeightAndRadius(float height, float radius)
Creates a capsule where Point A is radius units above the ground and Point B is height minus radius units above the ground.
| Parameter | Type | Description |
|---|---|---|
| height | float | — |
| radius | float | — |
No results match this filter.
Properties4
Showing 4 properties
public Vector3 Capsule.RandomPointOnEdge { get; set; }
Returns a random point on the edge of this capsule.
public float Capsule.Volume { get; set; }
Gets the volume of the capsule in cubic units.
Returns:
float—No results match this filter.