API reference
API reference
Select your platform
No SDKs available
No versions available

TriggerNativeCallbackOnDatamodel Object

Bridge object called by native code to trigger physics collision callbacks on the data model. This object is accessed via JNI from the native physics engine when collisions occur.

Signature

object TriggerNativeCallbackOnDatamodel

Functions

triggerCallback ( collider , collided , collisionPos , normal , impulse )
Triggers a physics collision callback event on the data model.
Signature
fun triggerCallback(collider: Long, collided: Long, collisionPos: Vector3, normal: Vector3, impulse: Float)
Parameters
collider: Long
  The entity ID that initiated the collision
collided: Long
  The entity ID that was collided with
collisionPos: Vector3
  The 3D position where the collision occurred
normal: Vector3
  The collision normal vector
impulse: Float
  The force of the collision impulse
Did you find this page helpful?