struct Capsule
in global
A capsule object, defined by 2 points and a radius. A capsule is a cylinder with round ends (inset half spheres on each end).
public Vector3 CenterA
Position of point A.
public Vector3 CenterB
Position of point B.
public float Radius
Radius of a capsule.
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.
public Vector3 RandomPointInside { get; }
Returns a random point within this capsule.
public Vector3 RandomPointOnEdge { get; }
Returns a random point on the edge of this capsule.
public static bool op_Equality( Capsule left, Capsule right )
😔 No documentation found.
public static bool op_Inequality( Capsule left, Capsule right )
😔 No documentation found.
public bool Equals( object obj )
😔 No documentation found.
public bool Equals( Capsule o )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.
public string ToString( )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public Capsule( Vector3 a, Vector3 b, float r )
😔 No documentation found.