# PhysicsCallbacks.IPreContinuousCallback

> An interface that when implemented, is called during the continuous collision stage when a fast-moving shape is about to be stopped short of a shape it would otherwise pass through. Returning false lets the shape continue rather than being stopped at the predicted impact point.

## Definition

* **Type:** Interface
* **Namespace:** [Unity.U2D.Physics](/engine/6000.7/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
public interface PhysicsCallbacks.IPreContinuousCallback
```

## Remarks

This is only called if the [PhysicsWorld](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld.md) and one of the [PhysicsShape](/engine/6000.7/script-reference/unity/u2d/physics/physicsshape.md) both have their `preContactCallbacks` set to true. It takes priority over the deprecated IPreSolveCallback, which is only used when this interface is not implemented on the same target.

## Methods

| Method                                                                                                                              | Description                                                                                                                                                                                                                                                                                                                                                                                   |
| ----------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [OnPreContinuous2D](/engine/6000.7/script-reference/unity/u2d/physics/physicscallbacks/iprecontinuouscallback/onprecontinuous2d.md) | Called during the continuous collision stage when a fast-moving shape is predicted to hit another shape this step. No contact exists yet, as the shapes are not touching during the contact update, so this is the only place the pair is seen. Returning true stops the shape at the predicted impact point, and a contact then appears on the next step once the shapes are found touching. |
