Interface: PhysicsEvent
Extends
PluginEvent
Properties
bodyA
bodyA:
PhysicsBody
Defined in
m2c2kit/packages/physics/src/Physics.ts:40
bodyB
bodyB:
PhysicsBody
Defined in
m2c2kit/packages/physics/src/Physics.ts:41
handled?
optionalhandled:boolean
Has the event been taken care of by the listener and not be dispatched to other targets?
Inherited from
PluginEvent.handled
Defined in
node_modules/@m2c2kit/core/dist/index.d.ts:2854
iso8601Timestamp
iso8601Timestamp:
string
Timestamp of th event, from new Date().toISOString()
Inherited from
PluginEvent.iso8601Timestamp
Defined in
node_modules/@m2c2kit/core/dist/index.d.ts:2858
sequence?
optionalsequence:number
Sequence number of event.
Remarks
Sequence number is guaranteed to reflect order of events, but not necessarily contiguous, e.g., could be 1, 2, 5, 10, 11, 24.
Inherited from
PluginEvent.sequence
Defined in
node_modules/@m2c2kit/core/dist/index.d.ts:2863
target
target:
Plugin
The object on which the event occurred. If the event has gone through serialization, the string will be the object's UUID (if an M2Node) or class name.
Inherited from
PluginEvent.target
Defined in
node_modules/@m2c2kit/core/dist/index.d.ts:5091
timestamp
timestamp:
number
Timestamp of the event, from performance.now()
Inherited from
PluginEvent.timestamp
Defined in
node_modules/@m2c2kit/core/dist/index.d.ts:2856
type
type:
string
Type of event.
Inherited from
PluginEvent.type
Defined in
node_modules/@m2c2kit/core/dist/index.d.ts:2850