Struct |
Description |
CapsuleGeometry |
The geometry of a closed capsule which can be viewed as two semi-circles connected by a rectangle.
See PhysicsBody.CreateShape.
|
ChainGeometry |
The geometry of a chain of ChainSegment.
|
ChainSegmentGeometry |
The geometry of a chain line segment with one-sided collision which only collides on the "right" side.
Several of these are generated for a chain, connected as ghost1 -> point1 -> point2 -> ghost2.
|
CircleGeometry |
The geometry of a closed circle.
See PhysicsBody.CreateShape.
|
ColliderDistance2D | Represents the separation or overlap of two Collider2D. |
ContactFilter2D | A set of parameters for filtering contact results. Define the angle by referring to their position in world space, where 0 degrees is parallel to the positive x-axis, 90 degrees is parallel to the positive y-axis, 180 degrees is parallel to the negative x-axis, and 270 degrees is parallel to the negative y-axis. |
ContactPoint2D | Details about a specific point of contact involved in a 2D physics collision. |
JointAngleLimits2D | Angular limits on the rotation of a Rigidbody2D object around a HingeJoint2D. |
JointMotor2D | Parameters for the optional motor force applied to a Joint2D. |
JointSuspension2D | Joint suspension is used to define how suspension works on a WheelJoint2D. |
JointTranslationLimits2D | Motion limits of a Rigidbody2D object along a SliderJoint2D. |
PhysicsAABB |
Represents a 2D axis-aligned bounding-box.
|
PhysicsBody |
A body is contained within a world and has 3 degrees-of-freedom, two for position and one for rotation.
A body can have forces, torques and impulses applied to it.
A body has three distinct types:
Static: This type of body does not move under simulation and behaves as if it has infinite mass, essentially an immovable object. Static bodies never interact with other Static or Kinematic bodies.Dynamic: This type of body is fully simulated and moves according to forces and torques applied to its linear/angular velocities. It can interact with all other body types. It always has finite, non-zero mass.Kinematic: This type of body moves under simulation and moves according to its linear/angular velocities and never uses forces or torques. It only interacts with Dynamic body types. It behaves as if it has infinite mass. A body is automatically destroyed when the world it is in is destroyed. A body cannot exist outside a world.
|
PhysicsBodyDefinition |
A PhysicsBody definition used to specify important initial properties.
|
PhysicsCallbacks |
Callback targets for object events.
|
PhysicsChain |
A dedicated shape that produces a chain of shapes connected together to produce a continuous surface.
Chain shapes provide a smooth, continuous surface that will not produce "ghost" collisions.
A PhysicsChain is automatically destroyed when the body it is in is destroyed. A PhysicsChain cannot exist unattached from a body.
This will produce shapes of type PhysicsShape.ShapeType.ChainSegment.
Chains are one-sided.A chain has no mass and should be used on static bodies.A chain can have a counter-clockwise winding order (normal points right of segment direction).A chain is either a loop or open.A chain must have at least 4 points.The distance between any two points must be greater than PhysicsWorld.linearSlop.A chain should not self intersect (this is not validated).An open chain has no collision on the first and final edge.You may overlap two open chains on their first three and/or last three points to get smooth collision. |
PhysicsChainDefinition |
A PhysicsChain definition used to specify the chain of vertices that will produce multiple ChainSegmentGeometry shape types.
Additionally, non-geometric properties can be specified here.
|
PhysicsComposer |
Provides the ability to compose geometry using specific operations on layers in a specific order.
|
PhysicsConstants |
Contacts used by physics.
|
PhysicsDestructor |
Provides the ability to destruct (fragment and Slice) geometry.
|
PhysicsDistanceJoint |
Connects an anchor point on body A with an anchor point on body B via a line segment of a specified distance.
|
PhysicsDistanceJointDefinition |
A joint definition used to specify properties when creating a PhysicsDistanceJoint.
|
PhysicsEvents |
Various events that can be retrieved during and after the simulation has completed.
See PhysicsWorld.Simulate and PhysicsWorld.Simulate.
|
PhysicsFixedJoint |
A joint to constrain a pair of bodies together rigidly.
This constraint provides springs to mimic soft-body simulation.
The approximate solver cannot always hold many bodies together completely rigidly.
|
PhysicsFixedJointDefinition |
A joint definition used to specify properties when creating a PhysicsFixedJoint.
|
PhysicsHingeJoint |
A joint where an anchor point on body B is fixed to an anchor point on body A.
This joint allows relative rotation.
|
PhysicsHingeJointDefinition |
A joint definition used to specify properties when creating a PhysicsHingeJoint.
|
PhysicsIgnoreJoint |
A joint used to ignore collision between two specific bodies.
As a side effect of being a joint, it also keeps the two bodies in the same simulation island meaning they'll wake/sleep at the same time and be solved together on the same thread.
|
PhysicsIgnoreJointDefinition |
A joint definition used to specify properties when creating a PhysicsIgnoreJoint.
|
PhysicsJobOptions2D | A set of options that control how physics operates when using the job system to multithread the physics simulation. |
PhysicsJoint |
A joint is used to constrain bodies to the world or to each other in various ways.
A joint is automatically destroyed when either body it is attached to is destroyed. A joint cannot exist unattached from a body.
|
PhysicsLayers |
This provides a common method to retrieving layer information.
If a PhysicsLowLevelSettings2D asset is assigned then the full layers (PhysicsLowLevelSettings2D.physicsLayerNames) will be used if PhysicsLowLevelSettings2D.useFullLayers is also active.
If no PhysicsLowLevelSettings2D asset is assigned then the global layers (See UnityEngine.LayerMask) will be used.
|
PhysicsMask |
A 64-bit mask, effectively 64 flags. The default enumerator will iterate all the bits that are set (1).
|
PhysicsMath |
A set of mathematical operations that are useful for physics.
These operations do not form a fully comprehensive mathematics library, they simply provide operations that are usually required when interacting with physics.
|
PhysicsPlane |
Represents a 2D plane.
|
PhysicsQuery |
Various physics queries.
|
PhysicsRelativeJoint |
A joint constraint used to control the relative movement two bodies while still being responsive to collisions.
A spring controls the position and rotation and velocity control allows for simulated friction such as seen in top-down games.
A typical usage is to control the movement of a dynamic body with respect to the ground.
|
PhysicsRelativeJointDefinition |
A joint definition used to specify properties when creating a PhysicsRelativeJoint.
|
PhysicsRotate |
Represents a 2D rotation.
|
PhysicsScene2D | Represents a single instance of a 2D physics Scene. |
PhysicsShape |
A shape is attached to a body and defines an area to which two distinct types of behaviour are handled:
Collision: Contacts between shapes produce a collision response on their respective bodies, assuming their body type is Dynamic.Trigger: Contacts between shapes do not produce a collision response, only the fact that they're overlapping is reported. An unlimited number of shapes can be attached to a single body, known as a compound body.
A shape is automatically destroyed when the body it is attached to is destroyed. A shape cannot exist unattached from a body.
|
PhysicsShape2D | Represents an efficient low-level physics shape used by the physics engine. |
PhysicsShapeDefinition |
A PhysicsShape definition used to specify important initial properties.
|
PhysicsSliderJoint |
A joint that requires defining a line of motion defined by the local anchor A.
Body B may slide along the axis defined by the local anchor A.
Body B cannot rotate relative to body A.
The joint translation is zero when the local anchor origins coincide in world space.
The joint uses local anchors so that the initial configuration can violate the constraint slightly.
|
PhysicsSliderJointDefinition |
A joint definition used to specify properties when creating a PhysicsSliderJoint.
|
PhysicsTransform |
Represents a 2D transformation combining a translation and a PhysicsRotate.
|
PhysicsUserData |
Custom user data.
The physics system doesn't use this data, it is entirely for custom use.
|
PhysicsWheelJoint |
A joint that requires defining a line of motion using an axis and an anchor point.
The joint translation is zero when the local anchors coincide in world space.
The joint uses local anchors so that the initial configuration can violate the constraint slightly.
|
PhysicsWheelJointDefinition |
A joint definition used to specify properties when creating a PhysicsWheelJoint.
|
PhysicsWorld |
A world is a container for all other physics objects such as PhysicsBody, PhysicsShape, PhysicsJoint etc.
A world can be simulated in isolation from all other worlds.
The maximum number of worlds that can be created at one time is defined by PhysicsConstants.MaxWorlds.
A world is completely isolated from all other worlds.
|
PhysicsWorldDefinition |
A PhysicsWorld definition used to specify important initial properties.
|
PolygonGeometry |
The geometry of a closed convex polygon.
See PhysicsBody.CreateShape.
|
RaycastHit2D | Returns information about 2D Colliders detected by a 2D physics query in the scene. |
SegmentGeometry |
The geometry of a line segment.
See PhysicsBody.CreateShape.
|