# PhysicsScene

> Represents a single instance of a 3D physics Scene.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.PhysicsModule
* **Implements:** [IEquatable\<PhysicsScene>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public struct PhysicsScene : IEquatable<PhysicsScene>
```

## Methods

| Method                                                                                                                           | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [BoxCast](/engine/6000.7/script-reference/unityengine/physicsscene/boxcast.md)                                                   | Casts the box along a ray and returns detailed information on what was hit.                                                                                                                                                                                                                                                                                                                                                                                                            |
| [CapsuleCast](/engine/6000.7/script-reference/unityengine/physicsscene/capsulecast.md)                                           | Casts a capsule against all colliders in this physics scene and returns detailed information on what was hit.                                                                                                                                                                                                                                                                                                                                                                          |
| [InterpolateBodies](/engine/6000.7/script-reference/unityengine/physicsscene/interpolatebodies.md)                               | Interpolates Rigidbodies in this [PhysicsScene](/engine/6000.7/script-reference/unityengine/physicsscene.md).                                                                                                                                                                                                                                                                                                                                                                          |
| [IsEmpty](/engine/6000.7/script-reference/unityengine/physicsscene/isempty.md)                                                   | Gets whether the physics Scene is empty or not.                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [IsValid](/engine/6000.7/script-reference/unityengine/physicsscene/isvalid.md)                                                   | Gets whether the physics Scene is valid or not.                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [OverlapBox](/engine/6000.7/script-reference/unityengine/physicsscene/overlapbox.md)                                             | Find all colliders touching or inside of the given box, and store them into the buffer.                                                                                                                                                                                                                                                                                                                                                                                                |
| [OverlapCapsule](/engine/6000.7/script-reference/unityengine/physicsscene/overlapcapsule.md)                                     | Check the given capsule against the physics world and return all overlapping colliders in the user-provided buffer.                                                                                                                                                                                                                                                                                                                                                                    |
| [OverlapSphere](/engine/6000.7/script-reference/unityengine/physicsscene/overlapsphere.md)                                       | Computes and stores colliders touching or inside the sphere into the provided buffer.                                                                                                                                                                                                                                                                                                                                                                                                  |
| [Raycast](/engine/6000.7/script-reference/unityengine/physicsscene/raycast.md)                                                   | Casts a ray, from point `origin`, in direction `direction`, of length `maxDistance`, against all colliders in the Scene.                                                                                                                                                                                                                                                                                                                                                               |
| [ReleaseLastSimulationStepBuffers](/engine/6000.7/script-reference/unityengine/physicsscene/releaselastsimulationstepbuffers.md) | Clear and deallocate the simulation results.                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [ResetInterpolationPoses](/engine/6000.7/script-reference/unityengine/physicsscene/resetinterpolationposes.md)                   | Resets the [Transform](/engine/6000.7/script-reference/unityengine/transform.md) positions of interpolated and extrapolated Rigidbodies in this [PhysicsScene](/engine/6000.7/script-reference/unityengine/physicsscene.md) to [\_position](/engine/6000.7/script-reference/unityengine/rigidbody/position.md) and [Transform](/engine/6000.7/script-reference/unityengine/transform.md) rotations to [\_rotation](/engine/6000.7/script-reference/unityengine/rigidbody/rotation.md). |
| [RunSimulationStages](/engine/6000.7/script-reference/unityengine/physicsscene/runsimulationstages.md)                           | Runs specified physics simulation stages on this physics scene.                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [Simulate](/engine/6000.7/script-reference/unityengine/physicsscene/simulate.md)                                                 | Simulate physics associated with this [PhysicsScene](/engine/6000.7/script-reference/unityengine/physicsscene.md).                                                                                                                                                                                                                                                                                                                                                                     |
| [SphereCast](/engine/6000.7/script-reference/unityengine/physicsscene/spherecast.md)                                             | Casts a sphere along a ray and returns detailed information on what was hit.                                                                                                                                                                                                                                                                                                                                                                                                           |
