Skip to content

Documentation / scene / createPlaneCollider

Function: createPlaneCollider()

createPlaneCollider(pointOrOffset, normal, node?): PlaneCollider

Defined in: libs/scene/src/animation/spring/spring_collider.ts:175

Creates a plane collider

Parameters

pointOrOffset

Vector3

Point on plane in world space, or local offset if node is provided

normal

Vector3

Normal vector (will be normalized)

node?

SceneNode

Optional scene node to attach to (if provided, pointOrOffset is treated as local offset)

Returns

PlaneCollider

Released under the MIT License.