Scripting API

Scripting API

CapsuleCollider3D

Struct in Abyss.Physics3D, from Abyss.Physics3D.

A capsule an entity meets things with: a cylinder with a half ball at each end, a character's. Its radius is scaled by the larger of the entity's scales across it, its height by the scale along it.

public struct CapsuleCollider3D

Fields

Radius

public float Radius

How far its surface is from the line down its middle.

Height

public float Height

How long it is end to end, its round ends among it; a ball where no longer than it is wide.

Direction

public CapsuleDirection3D Direction

Which of the entity's own axes it lies along.

Offset

public Vector3 Offset

Where its middle is, from the entity's.

IsTrigger

public bool IsTrigger

Whether it meets nothing.

Material

public AssetRef<PhysicsMaterial3D> Material

What it is made of; none for Physics 3D's settings' default.

Density

public float Density

How heavy it is for its size, in kilograms a cubic meter: what its body's mass is worked out from where its Rigidbody 3D says Use Auto Mass.