ColliderOptions
One collider of a body, of a shape Shape allows.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
Shape extends ColliderShape |
ColliderShape |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
collisionLayer? |
CollisionLayerHandle |
The layer this collider stands in, over its body’s. |
collisionMask? |
CollisionMask |
The layers this collider meets, over its body’s. |
material? |
MaterialOptions |
- |
offset? |
Triple |
Metres from the entity’s origin, along its own axes, scaled with it. |
rotation? |
RotationInput |
How it is turned in the entity’s axes. |
shape |
Shape |
Made by a helper: box, sphere, capsule, cylinder, cone, convexHull, triangleMesh, heightfield or voxels. |
trigger? |
boolean |
A trigger touches nothing and stands where others pass, as Unity’s isTrigger. |