Interface IGeneric6DofJoint3D
Interface for a 6 DoF 3D joint in physics.
Inherited Members
Namespace: Evergine.Framework.Physics3D
Assembly: Evergine.Framework.dll
Syntax
public interface IGeneric6DofJoint3D : IJoint3D
Properties
AngularLowerLimit
Gets or sets the angular lower limit.
Declaration
Vector3 AngularLowerLimit { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
AngularUpperLimit
Gets or sets the angular upper limit.
Declaration
Vector3 AngularUpperLimit { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
Flags
Gets the flags.
Declaration
int Flags { get; }
Property Value
Type | Description |
---|---|
int |
FrameOffsetA
Gets the frame offset A.
Declaration
Matrix4x4 FrameOffsetA { get; }
Property Value
Type | Description |
---|---|
Matrix4x4 |
FrameOffsetB
Gets the frame offset for B.
Declaration
Matrix4x4 FrameOffsetB { get; }
Property Value
Type | Description |
---|---|
Matrix4x4 |
LinearLowerLimit
Gets or sets the linear lower limit.
Declaration
Vector3 LinearLowerLimit { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
LinearUpperLimit
Gets or sets the linear upper limit.
Declaration
Vector3 LinearUpperLimit { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
UseFrameOffset
Gets or sets a value indicating whether the frame offsets are enabled.
Declaration
bool UseFrameOffset { get; set; }
Property Value
Type | Description |
---|---|
bool |
UseLinearReferenceFrameA
Gets or sets a value indicating whether the joint uses A as a frame reference.
Declaration
bool UseLinearReferenceFrameA { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
GetAngle(DOFType)
Gets the angle of the axis.
Declaration
float GetAngle(DOFType axisIndex)
Parameters
Type | Name | Description |
---|---|---|
DOFType | axisIndex | Axis index: 0 for X, 1 for Y, or 2 for Z. |
Returns
Type | Description |
---|---|
float | The angle. |
GetAxis(DOFType)
Gets the axis.
Declaration
Vector3 GetAxis(DOFType axisIndex)
Parameters
Type | Name | Description |
---|---|---|
DOFType | axisIndex | Axis index: 0 for X, 1 for Y, 2 for Z. |
Returns
Type | Description |
---|---|
Vector3 | The axis. |
IsLimited(DOFType)
Checks if an axis is limited.
Declaration
bool IsLimited(DOFType axisIndex)
Parameters
Type | Name | Description |
---|---|---|
DOFType | axisIndex | Axis index 0:X 1:Y 2:Z. |
Returns
Type | Description |
---|---|
bool | Whether the axis is limited. |
SetAxis(Vector3, Vector3)
Sets the axis.
Declaration
void SetAxis(Vector3 axis1, Vector3 axis2)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | axis1 | The first axis. |
Vector3 | axis2 | The second axis. |
SetFrames(Matrix4x4, Matrix4x4)
Sets frames.
Declaration
void SetFrames(Matrix4x4 frameA, Matrix4x4 frameB)
Parameters
Type | Name | Description |
---|---|---|
Matrix4x4 | frameA | Frame A. |
Matrix4x4 | frameB | Frame B. |
SetLimit(DOFType, float, float)
Sets the axis.
Declaration
void SetLimit(DOFType axis, float low, float high)
Parameters
Type | Name | Description |
---|---|---|
DOFType | axis | Axis index 0: X, 1: Y, 2: Z. |
float | low | The lower limit. |
float | high | The upper limit. |