CLASSES
TagsA - Z

CollisionCoordinatorWorker

Collision

Description

class CollisionCoordinatorWorker

Constructor

new CollisionCoordinatorWorker()

Members

static SerializeMesh : (mesh: AbstractMesh) => SerializedMesh

static SerializeGeometry : (geometry: Geometry) => SerializedGeometry

onMeshUpdated : (mesh: AbstractMesh) => void

onGeometryUpdated : (geometry: Geometry) => void

Methods

getNewPosition(position, velocity, collider, maximumRetry, excludedMesh, onNewPosition, collisionIndex) → void

Parameters

Name Type Description
position Vector3
velocity Vector3
collider Collider
maximumRetry number
excludedMesh AbstractMesh
onNewPosition (collisionIndex: number, newPosition: Vector3, collidedMesh: AbstractMesh) => void

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