Scripting API

Scripting API

BoxCollider3D

Struct in Abyss.Physics3D, from Abyss.Physics3D.

A box an entity meets things with: on its Rigidbody3D, or the nearest one above it, or ground where there is none. The other colliders are on a body the same way. Its size and place in the entity's own units, scaled with it.

public struct BoxCollider3D

Fields

Size

public Vector3 Size

How wide, high and deep it is.

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.