eulerjs API / @eulerjs/core / CapsuleCollider
CapsuleCollider
Defined in: packages/core/src/colliders/CapsuleCollider.ts:21
A cylinder with rounded ends, along its y axis: the usual shape for limbs and characters.
Extends
Constructors
Constructor
new CapsuleCollider(options): CapsuleCollider;Defined in: packages/core/src/colliders/CapsuleCollider.ts:26
Parameters
| Parameter | Type |
|---|---|
options | CapsuleColliderOptions |
Returns
CapsuleCollider
Overrides
Properties
Accessors
boundingRadius
Get Signature
get boundingRadius(): number;Defined in: packages/core/src/colliders/CapsuleCollider.ts:34
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/CapsuleCollider.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
endsAt()
endsAt(
pose,
start,
end
): void;Defined in: packages/core/src/colliders/CapsuleCollider.ts:39
Writes the centres of the two rounded ends in world space, for the collider at pose.
Parameters
| Parameter | Type |
|---|---|
pose | ColliderPose |
start | Vector3 |
end | Vector3 |
Returns
void
massProperties()
massProperties(specification): MassProperties;Defined in: packages/core/src/colliders/CapsuleCollider.ts:54
Mass properties of the solid in the body frame, or undefined for shapes without a volume.
Parameters
| Parameter | Type |
|---|---|
specification | MassSpecification |
