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

PhysicsCollisionCallbackEventArgs Class

Extends EventArgs
Modifiers: final
Event arguments for physics collision callbacks. Contains information about the collision including the entity involved, position, normal vector, and impulse force.

Signature

class PhysicsCollisionCallbackEventArgs(val collidedEntity: Entity, val collisionPosition: Vector3, val collisionNormal: Vector3, val impulse: Float, datamodel: DataModel) : EventArgs

Constructors

PhysicsCollisionCallbackEventArgs ( collidedEntity , collisionPosition , collisionNormal , impulse , datamodel )
Signature
constructor(collidedEntity: Entity, collisionPosition: Vector3, collisionNormal: Vector3, impulse: Float, datamodel: DataModel)
Parameters
collidedEntity: Entity  The entity that was involved in the collision
collisionPosition: Vector3  The 3D position where the collision occurred
collisionNormal: Vector3  The normal vector at the point of collision
impulse: Float  The force of the collision impulse
datamodel: DataModel  The data model instance for event propagation

Properties

collidedEntity : Entity
[Get]
The entity that was involved in the collision
Signature
val collidedEntity: Entity
collisionNormal : Vector3
[Get]
The normal vector at the point of collision
Signature
val collisionNormal: Vector3
collisionPosition : Vector3
[Get]
The 3D position where the collision occurred
Signature
val collisionPosition: Vector3
dataModel : DataModel
[Get]
Data model.
Signature
val dataModel: DataModel
eventName : String
[Get]
The string identifier for this event type, used to match registered Entity event listeners. Each EventArgs subclass defines its own event name constant for dispatch routing.
Signature
val eventName: String
handled : Boolean
[Get][Set]
Flag indicating whether this event has been consumed by a listener. Set to true in an event handler to prevent further propagation to other listeners registered for the same event.
Signature
var handled: Boolean
impulse : Float
[Get]
The force of the collision impulse
Signature
val impulse: Float
throttleTime : Int?
[Get][Set]
Minimum interval in milliseconds between consecutive dispatches of this event type. Events fired more frequently than this interval are silently dropped to prevent listener overload.
Signature
var throttleTime: Int?

Companion Object

Properties

EVENT_NAME : String
[Get]
Signature
val EVENT_NAME: String