class MAGESJoint¶
Overview¶
Custom joint object that store necessary properties. More…
class MAGESJoint
{
public:
// properties
string JointName;
bool HasJointLimits;
bool RotateX;
bool RotateY;
bool RotateZ;
GameObject JointGameObject;
ArticulationBody ArticBody;
float UpperLimit;
float LowerLimit;
Vector3 AnchorPos;
Quaternion AnchorRotation;
Matrix4x4 InitRotation;
};
Detailed Documentation¶
Custom joint object that store necessary properties.
Properties¶
string JointName
Gets or sets the name of the joint.
bool HasJointLimits
Gets or sets a value indicating whether a revolute joint has limits or not.
bool RotateX
Gets or sets a value indicating whether the joint rotates around X-axis or not.
bool RotateY
Gets or sets a value indicating whether the joint rotates around Y-axis or not.
bool RotateZ
Gets or sets a value indicating whether the joint rotates around Z-axis or not.
GameObject JointGameObject
Gets or sets the joint game object.
ArticulationBody ArticBody
Gets or sets the articulation body component for each joint.
float UpperLimit
Gets or sets the upper joint limit.
float LowerLimit
Gets or sets the lower joint limit.
Vector3 AnchorPos
Gets or sets the anchor position.
Quaternion AnchorRotation
Gets or sets the anchor rotation quaternion.
Matrix4x4 InitRotation
Gets or sets the initial roration matrix of the joint.