eulerjs API / @eulerjs/core / BoxCollider
BoxCollider
Defined in: packages/core/src/colliders/BoxCollider.ts:17
A box, centred on the collider's position, its edges along the collider's axes.
Extends
Constructors
Constructor
new BoxCollider(options): BoxCollider;Defined in: packages/core/src/colliders/BoxCollider.ts:22
Parameters
| Parameter | Type |
|---|---|
options | BoxColliderOptions |
Returns
BoxCollider
Overrides
Properties
Accessors
boundingRadius
Get Signature
get boundingRadius(): number;Defined in: packages/core/src/colliders/BoxCollider.ts:30
Radius of a sphere around the offset that contains the shape; Infinity for infinite shapes.
Returns
number
Overrides
Methods
bounds()
bounds(pose, target): Box3;Defined in: packages/core/src/colliders/BoxCollider.ts:34
World-space box around the collider at pose. Infinite shapes return an infinite box.
Parameters
| Parameter | Type |
|---|---|
pose | ColliderPose |
target | Box3 |
Returns
Box3
Overrides
canCollideWith()
canCollideWith(other): boolean;Defined in: packages/core/src/colliders/Collider.ts:95
Parameters
| Parameter | Type |
|---|---|
other | Collider |
Returns
boolean
Inherited from
massProperties()
massProperties(specification): MassProperties;Defined in: packages/core/src/colliders/BoxCollider.ts:46
Mass properties of the solid in the body frame, or undefined for shapes without a volume.
Parameters
| Parameter | Type |
|---|---|
specification | MassSpecification |
