Struct PhysicsJoint
A set of constraints on the relative motion of a Physics
Inherited Members
Namespace: Unity.Physics
Assembly: solution.dll
Syntax
public struct PhysicsJoint : IComponentData, IQueryTypeParameter
Properties
Name | Description |
---|---|
Body |
The anchor point and orientation in the space of the first body. |
Body |
The target point and orientation in the space of the second body. |
this[int] | Access to Constraint atom with provided index. |
Joint |
An optional property to provide a hint about what behavior the underlying constraints
represent. Use it in conjunction with convenience setters in Joint |
Version | A counter to keep track of changes to the joint's definition. Use it with back-ends like Havok that cache information about the joint if its properties have not changed. |
Methods
Name | Description |
---|---|
Create |
Create a Angular |
Create |
Create a Ball |
Create |
Create a Fixed joint. |
Create |
Create a Hinge joint. |
Create |
Create a Limited |
Create |
Create a Limited |
Create |
Create a Limited |
Create |
Create a Limited |
Create |
Create a Linear |
Create |
Create a PositionMotor joint. This is a motorized prismatic joint that drives bodies toward the specified relative target position, along one axis. |
Create |
Create a Prismatic joint. |
Create |
Create a Ragdoll |
Create |
Create a Rotational |
Get |
Get number of Constraint atoms in this joint. |
Get |
Get the sequence of Constraint atoms to apply between the two bodies. |
Set |
Set the sequence of Constraints to apply between the two bodies. |
Set |
Set the impulse event threshold for all eligible constraints (non-motorized ones) in this joint. |
Set |
Set the impulse event threshold for all eligible constraints (non-motorized ones) in this joint. |
Set |
Set the impulse event threshold of a constraint specified by constraint index. If a selected constraint is a motor, this function will have no effect. |