eulerjs API / @eulerjs/core / CylinderCollider
CylinderCollider
Defined in: packages/core/src/colliders/CylinderCollider.ts:25
A solid cylinder along its y axis, such as a barrel, a log or a wheel. Its mass, ray casts and contacts with planes and spheres are exact, so it rolls smoothly on the ground; against other shapes it collides as a 16-sided prism.
Extends
Constructors
Constructor
new CylinderCollider(options): CylinderCollider;Defined in: packages/core/src/colliders/CylinderCollider.ts:31
Parameters
| Parameter | Type |
|---|---|
options | CylinderColliderOptions |
Returns
CylinderCollider
Overrides
Properties
Accessors
boundingRadius
Get Signature
get boundingRadius(): number;Defined in: packages/core/src/colliders/CylinderCollider.ts:39
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/CylinderCollider.ts:49
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/CylinderCollider.ts:60
Mass properties of the solid in the body frame, or undefined for shapes without a volume.
Parameters
| Parameter | Type |
|---|---|
specification | MassSpecification |
