ICollisionEvent Class
Collision events.
Index
Properties
typeStringEvent type of collision.selfColliderCollider3DCollider of its own in collision.otherColliderCollider3DAnother collider in the collision.contactsIContactEquation[]Information about all the points of impact in the collision.
Details
Properties
type
Event type of collision.
| meta | description |
|---|---|
| Type | String |
| Defined in | cocos2d/core/3d/physics/framework/physics-interface.ts:133 |
selfCollider
Collider of its own in collision.
| meta | description |
|---|---|
| Type | Collider3D |
| Defined in | cocos2d/core/3d/physics/framework/physics-interface.ts:143 |
otherCollider
Another collider in the collision.
| meta | description |
|---|---|
| Type | Collider3D |
| Defined in | cocos2d/core/3d/physics/framework/physics-interface.ts:153 |
contacts
Information about all the points of impact in the collision.
| meta | description |
|---|---|
| Type | IContactEquation[] |
| Defined in | cocos2d/core/3d/physics/framework/physics-interface.ts:163 |