Legacy Documentation: Version 4.6.2
Language: English
Network Manager
Physics 2D Manager

Physics Manager

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

You can access the Physics Manager by selecting Edit->Project Settings->Physics from the menu bar.

The Physics Manager
The Physics Manager

Properties

Property: Function:
Gravity The amount of gravity applied to all Rigidbodies. Usually gravity acts only on the Y-axis (negative is down). Gravity is world units per second squared.
Default Material The default Physics Material that will be used if none has been assigned to an individual Collider.
Bounce Threshold Two colliding objects with a relative velocity below this value will not bounce. This value also reduces jitter so it is not recommended to set it to a very low value.
Sleep Velocity The default linear velocity, below which objects start going to sleep.
Sleep Angular Velocity The default angular velocity, below which objects start going to sleep.
Max Angular Velocity The default maximimum angular velocity permitted for any Rigidbodies. The angular velocity of Rigidbodies is clamped to stay within Max Angular Velocity to avoid numerical instability with quickly rotating bodies. Because this may prevent intentional fast rotations on objects such as wheels, you can override this value for any Rigidbody by scripting Rigidbody.maxAngularVelocity.
Min Penetration For Penalty How deep in meters are two objects allowed to penetrate before the collision solver pushes them apart. A higher value will make objects penetrate more but reduces jitter.
Solver Iteration Count Determines how accurately joints and contacts are resolved. Usually a value of 7 works very well for almost all situations.
Raycasts Hit Triggers If enabled, any Raycast that intersects with a Collider marked as a Trigger will return a hit. If disabled, these intersections will not return a hit.
Layer Collision Matrix Defines how the layer-based collision detection system will behave.

Details

The Physics Manager is where you define the default behaviors of your world. For an explanation of Rigidbody Sleeping, read this page about sleeping.

Hints

If you are having trouble with connected bodies oscillating and behaving eratically, setting a higher Solver Iteration Count may improve their stability, but will require more processing power.

Network Manager
Physics 2D Manager