eulerjs API / @eulerjs/core / ConeCollider
ConeCollider
Defined in: packages/core/src/colliders/ConeCollider.ts:23
A solid cone along its y axis, tip up, such as a traffic cone. Its mass, ray casts and contacts with planes are exact; against other shapes it collides as a 16-sided pyramid.
Extends
Constructors
Constructor
new ConeCollider(options): ConeCollider;Defined in: packages/core/src/colliders/ConeCollider.ts:29
Parameters
| Parameter | Type |
|---|---|
options | ConeColliderOptions |
Returns
ConeCollider
Overrides
Properties
Accessors
boundingRadius
Get Signature
get boundingRadius(): number;Defined in: packages/core/src/colliders/ConeCollider.ts:37
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/ConeCollider.ts:47
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/ConeCollider.ts:60
Mass properties of the solid in the body frame, or undefined for shapes without a volume.
Parameters
| Parameter | Type |
|---|---|
specification | MassSpecification |
