eulerjs API / @eulerjs/core / PlaneCollider
PlaneCollider
Defined in: packages/core/src/colliders/PlaneCollider.ts:10
An infinite flat ground: everything on the side its normal points away from is solid. Its normal is the collider's +y axis; turn it with rotation. Only for static and kinematic bodies.
Extends
Constructors
Constructor
new PlaneCollider(options?): PlaneCollider;Defined in: packages/core/src/colliders/PlaneCollider.ts:13
Parameters
| Parameter | Type |
|---|---|
options? | ColliderOptions |
Returns
PlaneCollider
Overrides
Properties
Accessors
boundingRadius
Get Signature
get boundingRadius(): number;Defined in: packages/core/src/colliders/PlaneCollider.ts:17
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/PlaneCollider.ts:27
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(): undefined;Defined in: packages/core/src/colliders/PlaneCollider.ts:33
Mass properties of the solid in the body frame, or undefined for shapes without a volume.
Returns
undefined
Overrides
normal()
normal(pose, target?): Vector3;Defined in: packages/core/src/colliders/PlaneCollider.ts:22
The plane's normal in world space at pose.
Parameters
| Parameter | Type |
|---|---|
pose | ColliderPose |
target? | Vector3 |
Returns
Vector3
