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.
CloseFor some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
CloseThe Physics module implements 3D physics in Unity.
ArticulationBody | A body that forms part of a Physics articulation. |
BoxCollider | A box-shaped primitive collider. |
CapsuleCollider | A capsule-shaped primitive collider. |
CharacterController | A CharacterController allows you to easily do movement constrained by collisions without having to deal with a rigidbody. |
CharacterJoint | Character Joints are mainly used for Ragdoll effects. |
Collider | A base class of all colliders. |
Collision | Describes a collision. |
ConfigurableJoint | The configurable joint is an extremely flexible joint giving you complete control over rotation and linear motion. |
ConstantForce | A force applied constantly. |
ControllerColliderHit | ControllerColliderHit is used by CharacterController.OnControllerColliderHit to give detailed information about the collision and how to deal with it. |
FixedJoint | The Fixed joint groups together 2 rigidbodies, making them stick together in their bound position. |
HingeJoint | The HingeJoint groups together 2 rigid bodies, constraining them to move like connected by a hinge. |
ImmediatePhysics | This class contains methods to run the immediate simulation steps. |
Joint | Joint is the base class for all joints. |
MeshCollider | A mesh collider allows you to do collision detection between meshes and primitives. |
Physics | Global physics properties and helper methods. |
PhysicsMaterial | Physics material describes how to handle colliding objects (friction, bounciness). |
PhysicsSceneExtensions | Scene extensions to access the underlying physics scene. |
Rigidbody | Control of an object's position through physics simulation. |
SphereCollider | A sphere-shaped primitive collider. |
SpringJoint | The spring joint ties together 2 rigid bodies, spring forces will be automatically applied to keep the object at the given distance. |
ArticulationDrive | Drive applies forces and torques to the connected bodies. |
ArticulationJacobian | The floating point dense Jacobian matrix of the articulation body hierarchy. |
ArticulationReducedSpace | Coordinates in reduced space. |
BoxcastCommand | Use this struct to set up a box cast command to be performed asynchronously during a job. |
BoxGeometry | Contains the basic geometric shape of a box. |
CapsulecastCommand | Use this struct to set up a capsule cast command that is performed asynchronously during a job. |
CapsuleGeometry | Contains the basic geometric shape of a capsule. |
ClosestPointCommand | Struct used to set up a closest point command to be performed asynchronously during a job.When you use this struct to schedule a batch of closest commands, they are performed asynchronously and in parallel to each other. The results of the closest points are written to the results buffer. Because the results are written asynchronously, the results buffer cannot be accessed until the job has been completed.The result for a command at index N in the command buffer is stored at index N in the results buffer. |
ColliderHit | Struct used to retrieve information from an Overlap batch query. |
ContactPair | A pair of Colliders that belong to the bodies in the parent ContactPairHeader struct. |
ContactPairHeader | A header struct which contains colliding bodies. |
ContactPairPoint | A readonly struct describing a contact point between two Colliders. |
ContactPoint | Describes a contact point where the collision occurs. |
ConvexMeshGeometry | Contains the basic geometric shape of a convex mesh. |
GeometryHolder | Holds the basic information of a geometric shape and its type. |
ImmediateContact | Describes a contact where two shapes collide. |
ImmediateTransform | A transform, containing a position and rotation. |
JointDrive | How the joint's movement will behave along its local X axis. |
JointLimits | JointLimits is used by the HingeJoint to limit the joints angle. |
JointMotor | The JointMotor is used to motorize a joint. |
JointSpring | JointSpring is used add a spring force to HingeJoint and PhysicsMaterial. |
ModifiableContactPair | A light-weight proxy that allows to access the contact buffers directly. |
ModifiableMassProperties | Mass-related modifiable properties of a contact pair. |
OverlapBoxCommand | Struct used to set up an overlap box command to be performed asynchronously during a job. |
OverlapCapsuleCommand | Struct used to set up an overlap capsule command to be performed asynchronously during a job. |
OverlapSphereCommand | Struct used to setup an overlap sphere command to be performed asynchronously during a job. |
PhysicsScene | Represents a single instance of a 3D physics Scene. |
QueryParameters | Creates a struct to set up parameters for batch queries: RaycastCommand, BoxcastCommand, CapsulecastCommand, SpherecastCommand. |
RaycastCommand | Struct used to set up a raycast command to be performed asynchronously during a job. |
RaycastHit | Structure used to get information back from a raycast. |
SoftJointLimit | The limits defined by the CharacterJoint. |
SoftJointLimitSpring | The configuration of the spring attached to the joint's limits: linear and angular. Used by CharacterJoint and ConfigurableJoint. |
SpherecastCommand | Use this struct to set up a sphere cast command that is performed asynchronously during a job. |
SphereGeometry | Contains the basic geometric shape of a sphere. |
TerrainGeometry | Contains the geometric shape of a Terrain collider. |
TriangleMeshGeometry | Contains the basic geometric shape of a non-convex mesh (sometimes known as a triangle mesh). |
WheelFrictionCurve | WheelFrictionCurve is used by the WheelCollider to describe friction properties of the wheel tire. |
ArticulationDofLock | The lock type applied to a particular degree of freedom of an articulation body. |
ArticulationDriveAxis | An axis of a drive of an ArticulationBody. |
ArticulationDriveType | The drive type applied to a particular drive of an ArticulationBody. |
ArticulationJointType | The type of the joint that restricts movement of the two connected articulation bodies. |
CollisionDetectionMode | The collision detection mode constants used for Rigidbody.collisionDetectionMode. |
CollisionFlags | CollisionFlags is a bitmask returned by CharacterController.Move. |
ConfigurableJointMotion | Constrains movement for a ConfigurableJoint along the 6 axes. |
ForceMode | Use ForceMode to specify how to apply a force using Rigidbody.AddForce or ArticulationBody.AddForce. |
GeometryType | The set of basic geometry shape types that can exist. |
JointProjectionMode | Determines how to snap physics joints back to its constrained position when it drifts off too much. |
MeshColliderCookingOptions | Cooking options that are available with MeshCollider. |
PhysicsMaterialCombine | Describes how physics materials of the colliding objects are combined.The friction force as well as the residual bounce impulse are applied symmetrically to both of the colliders in contact, so each pair of overlapping colliders must have a single set of friction and bouciness settings. However, one can set arbitrary physics materials to any colliders. For that particular reason, there is a mechanism that allows the combination of two different sets of properties that correspond to each of the colliders in contact into one set to be used in the solver.Specifying Average, Maximum, Minimum or Multiply as the physics material combine mode, you directly set the function that is used to combine the settings corresponding to the two overlapping colliders into one set of settings that can be used to apply the material effect.Note that there is a special case when the two overlapping colliders have physics materials with different combine modes set. In this particular case, the function that has the highest priority is used. The priority order is as follows: Average < Minimum < Multiply < Maximum. For example, if one material has Average set but the other one has Maximum, then the combine function to be used is Maximum, since it has higher priority. |
QueryTriggerInteraction | Overrides the global Physics.queriesHitTriggers. |
RigidbodyConstraints | Use these flags to constrain motion of Rigidbodies. |
RigidbodyInterpolation | Rigidbody interpolation mode. |
RotationDriveMode | Control ConfigurableJoint's rotation with either X & YZ or Slerp Drive. |
SimulationMode | A selection of modes that control when Unity executes the physics simulation. |
SimulationOption | An enumerator that specifies physics simulation options. |
SimulationStage | A flag enum to determine which simulation stages to run. |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.
When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
More information
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising. Some 3rd party video providers do not allow video views without targeting cookies. If you are experiencing difficulty viewing a video, you will need to set your cookie preferences for targeting to yes if you wish to view videos from these providers. Unity does not control this.
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.