CollisionCoordinatorWorker

Collision

Description

class CollisionCoordinatorWorker

Constructor

new CollisionCoordinatorWorker()

Members

static SerializeMesh : (mesh: AbstractMesh) => SerializedMesh

Parameters

Name Type Description
mesh AbstractMesh

static SerializeGeometry : (geometry: Geometry) => SerializedGeometry

Parameters

Name Type Description
geometry Geometry

onMeshUpdated : (transformNode: TransformNode) => void

Parameters

Name Type Description
transformNode TransformNode

onGeometryUpdated : (geometry: Geometry) => void

Parameters

Name Type Description
geometry Geometry

Methods

getNewPosition(position, displacement, collider, maximumRetry, excludedMesh, onNewPosition, collisionIndex) void

Parameters

Name Type Description
position Vector3
displacement Vector3
collider Collider
maximumRetry number
excludedMesh AbstractMesh
onNewPosition collisionIndex number
newPosition Vector3
collidedMesh Nullable<AbstractMesh>

|

init(scene) void

Parameters

Name Type Description
scene Scene

destroy() void

onMeshAdded(mesh) void

Parameters

Name Type Description
mesh AbstractMesh

onMeshRemoved(mesh) void

Parameters

Name Type Description
mesh AbstractMesh

onGeometryAdded(geometry) void

Parameters

Name Type Description
geometry Geometry

onGeometryDeleted(geometry) void

Parameters

Name Type Description
geometry Geometry