# WorldClass.client_onCollision

Called when a collision occurs in this world.

**Kind:** Callback

**Environments:** Game

## Game

**Callback side:** Client

``` { .lua .api-signature }
WorldClass:client_onCollision(
    objectA,
    objectB,
    position,
    pointVelocityA,
    pointVelocityB,
    normal
)
```

[Open the full Game reference](../Game-Script-Environment/Classes/WorldClass.md#client_oncollision)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `self` | table | The class instance. |
| `objectA` | [Shape](../Game-Script-Environment/Userdata/Shape.md)/[Character](../Game-Script-Environment/Userdata/Character.md)/[Harvestable](../Game-Script-Environment/Userdata/Harvestable.md)/[Lift](../Game-Script-Environment/Userdata/Lift.md)/nil | One of the colliding objects. Nil if terrain. |
| `objectB` | [Shape](../Game-Script-Environment/Userdata/Shape.md)/[Character](../Game-Script-Environment/Userdata/Character.md)/[Harvestable](../Game-Script-Environment/Userdata/Harvestable.md)/[Lift](../Game-Script-Environment/Userdata/Lift.md)/nil | The other colliding object. Nil if terrain. |
| `position` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The position in world space where the collision occurred. |
| `pointVelocityA` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The velocity that that the first object had at the point of collision. |
| `pointVelocityB` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The velocity that that the other object had at the point of collision. |
| `normal` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The collision normal from objectA to objectB. |
