What CollisionEnteredEvent carries.
| Property |
Type |
Description |
colliderIndex |
number |
This entity’s collider that touched first, by its place in its collider list. |
entityDumpKey |
string |
This entity’s dump key. |
impulse |
number |
The solver’s contact impulse between the two in the step they first touched, in newton-seconds: what a pinball bumper scores by. |
normal |
Vector3 |
The contact’s normal, in world space, from this entity to the other. |
other |
Entity | null |
The entity it touched; null once that entity is destroyed. |
otherColliderIndex |
number |
The other entity’s collider that touched first. |
otherDumpKey |
string |
The other entity’s dump key, which outlives it, as the stream and the dump name it. |
point |
Vector3 |
Where they first touched, in world space. |
relativeVelocity |
Vector3 |
The other’s velocity at the point less this one’s, in metres a second, before the step’s solve: a box dropped at 5 m/s reads about 5 m/s, not what is left after it lands. |