Skip to content
On this page

@thejsngin/standard-assets / Modules / collider

Module: collider

collider

Table of contents

Type Aliases

Events

Type Aliases

colliderResourceType

Ƭ colliderResourceType: RAPIER.Collider

collider resource.

Defined in

collider/type.ts:14

Events

collisionEvent

Ƭ collisionEvent: Object

Fired for every colliding collider pair that has collision detection enabled for one of them.

Type declaration

NameType
data{ handle1: number ; handle2: number ; started: boolean }
data.handle1number
data.handle2number
data.startedboolean
eventLevel["gameObject"]
name"collisionEvent"
returnValany[]
waitForCompletiontrue

Defined in

collider/type.ts:21


contactForceEvent

Ƭ contactForceEvent: Object

Fired for every colliding collider pair that has contact Force detection enabled for one of them.

Type declaration

NameType
data{ collider1: ReturnType<RAPIER.TempContactForceEvent["collider1"]> ; collider2: ReturnType<RAPIER.TempContactForceEvent["collider2"]> ; maxForceDirection: ReturnType<RAPIER.TempContactForceEvent["maxForceDirection"]> ; maxForceMagnitude: ReturnType<RAPIER.TempContactForceEvent["maxForceMagnitude"]> ; totalForce: ReturnType<RAPIER.TempContactForceEvent["totalForce"]> ; totalForceMagnitude: ReturnType<RAPIER.TempContactForceEvent["totalForceMagnitude"]> }
data.collider1ReturnType<RAPIER.TempContactForceEvent["collider1"]>
data.collider2ReturnType<RAPIER.TempContactForceEvent["collider2"]>
data.maxForceDirectionReturnType<RAPIER.TempContactForceEvent["maxForceDirection"]>
data.maxForceMagnitudeReturnType<RAPIER.TempContactForceEvent["maxForceMagnitude"]>
data.totalForceReturnType<RAPIER.TempContactForceEvent["totalForce"]>
data.totalForceMagnitudeReturnType<RAPIER.TempContactForceEvent["totalForceMagnitude"]>
eventLevel["gameObject"]
name"contactForceEvent"
returnValany[]
waitForCompletiontrue

Defined in

collider/type.ts:34