Struct BodyFrame
A target in the space of a rigid body that will align with a corresponding target in the space of the other body to which it is constrained.
Implements
Inherited Members
Namespace: Unity.Physics
Assembly: solution.dll
Syntax
public struct BodyFrame : IEquatable<BodyFrame>
Constructors
Name | Description |
---|---|
BodyFrame(RigidTransform) | Constructor. |
Fields
Name | Description |
---|---|
Axis | The bind pose orientation of the joint's x-axis in the space of its rigid body. |
Identity | The identity BodyFrame. |
PerpendicularAxis | The bind pose orientation of the joint's y-axis in the space of its rigid body. |
Position | The bind pose anchor or target position of the joint in the space of its rigid body. |
Methods
Name | Description |
---|---|
AsRigidTransform() | Converts this object to a rigid transform. |
Equals(object) | Tests if this object is considered equal to another. |
Equals(BodyFrame) | Tests if this BodyFrame is considered equal to another. |
GetHashCode() | Calculates a hash code for this object. |
ToString() | Convert this object into a string representation. |
Operators
Name | Description |
---|---|
implicit operator BodyFrame(RigidTransform) | Implicit cast that converts the given RigidTransform to a BodyFrame. |