CLASSES
TagsA - Z

CollisionCoordinatorWorker

Collision

Description

class CollisionCoordinatorWorker

Constructor

new CollisionCoordinatorWorker()

Members

static SerializeMesh : AbstractMesh) => SerializedMesh

static SerializeGeometry : Geometry) => SerializedGeometry

onMeshUpdated : AbstractMesh) => void

onGeometryUpdated : Geometry) => void

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>) => 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