Struct JointData
Syntax
Properties
AFromJoint
Declaration
public Math.MTransform AFromJoint { get; }
Property Value
BFromJoint
Declaration
public Math.MTransform BFromJoint { get; }
Property Value
Constraints
Declaration
public BlobArray.Accessor<Constraint> Constraints { get; }
Property Value
NumConstraints
Declaration
public int NumConstraints { get; }
Property Value
Type |
Description |
System.Int32 |
|
Version
Declaration
public byte Version { get; }
Property Value
Type |
Description |
System.Byte |
|
Methods
Declaration
public static BlobAssetReference<JointData> Create(Math.MTransform aFromJoint, Math.MTransform bFromJoint, Constraint[] constraints)
Parameters
Returns
Type |
Description |
BlobAssetReference<JointData> |
|
CreateBallAndSocket(float3, float3)
Declaration
public static BlobAssetReference<JointData> CreateBallAndSocket(float3 positionAinA, float3 positionBinB)
Parameters
Type |
Name |
Description |
float3 |
positionAinA |
|
float3 |
positionBinB |
|
Returns
Type |
Description |
BlobAssetReference<JointData> |
|
CreateFixed(float3, float3, quaternion, quaternion)
Declaration
public static BlobAssetReference<JointData> CreateFixed(float3 positionAinA, float3 positionBinB, quaternion orientationAinA, quaternion orientationBinB)
Parameters
Type |
Name |
Description |
float3 |
positionAinA |
|
float3 |
positionBinB |
|
quaternion |
orientationAinA |
|
quaternion |
orientationBinB |
|
Returns
Type |
Description |
BlobAssetReference<JointData> |
|
CreateHinge(float3, float3, float3, float3)
Declaration
public static BlobAssetReference<JointData> CreateHinge(float3 positionAinA, float3 positionBinB, float3 axisInA, float3 axisInB)
Parameters
Type |
Name |
Description |
float3 |
positionAinA |
|
float3 |
positionBinB |
|
float3 |
axisInA |
|
float3 |
axisInB |
|
Returns
Type |
Description |
BlobAssetReference<JointData> |
|
CreateLimitedHinge(float3, float3, float3, float3, float3, float3, Single, Single)
Declaration
public static BlobAssetReference<JointData> CreateLimitedHinge(float3 positionAinA, float3 positionBinB, float3 axisInA, float3 axisInB, float3 perpendicularInA, float3 perpendicularInB, float minAngle, float maxAngle)
Parameters
Type |
Name |
Description |
float3 |
positionAinA |
|
float3 |
positionBinB |
|
float3 |
axisInA |
|
float3 |
axisInB |
|
float3 |
perpendicularInA |
|
float3 |
perpendicularInB |
|
System.Single |
minAngle |
|
System.Single |
maxAngle |
|
Returns
Type |
Description |
BlobAssetReference<JointData> |
|
CreatePrismatic(float3, float3, float3, Single, Single, Single, Single)
Declaration
public static BlobAssetReference<JointData> CreatePrismatic(float3 positionAinA, float3 positionBinB, float3 axisInB, float minDistanceOnAxis, float maxDistanceOnAxis, float minDistanceFromAxis, float maxDistanceFromAxis)
Parameters
Type |
Name |
Description |
float3 |
positionAinA |
|
float3 |
positionBinB |
|
float3 |
axisInB |
|
System.Single |
minDistanceOnAxis |
|
System.Single |
maxDistanceOnAxis |
|
System.Single |
minDistanceFromAxis |
|
System.Single |
maxDistanceFromAxis |
|
Returns
Type |
Description |
BlobAssetReference<JointData> |
|
CreateRagdoll(float3, float3, float3, float3, float3, float3, Single, Single, Single, Single, Single, out BlobAssetReference<JointData>, out BlobAssetReference<JointData>)
Declaration
public static void CreateRagdoll(float3 positionAinA, float3 positionBinB, float3 twistAxisInA, float3 twistAxisInB, float3 perpendicularAxisInA, float3 perpendicularAxisInB, float maxConeAngle, float minPerpendicularAngle, float maxPerpendicularAngle, float minTwistAngle, float maxTwistAngle, out BlobAssetReference<JointData> jointData0, out BlobAssetReference<JointData> jointData1)
Parameters
Type |
Name |
Description |
float3 |
positionAinA |
|
float3 |
positionBinB |
|
float3 |
twistAxisInA |
|
float3 |
twistAxisInB |
|
float3 |
perpendicularAxisInA |
|
float3 |
perpendicularAxisInB |
|
System.Single |
maxConeAngle |
|
System.Single |
minPerpendicularAngle |
|
System.Single |
maxPerpendicularAngle |
|
System.Single |
minTwistAngle |
|
System.Single |
maxTwistAngle |
|
BlobAssetReference<JointData> |
jointData0 |
|
BlobAssetReference<JointData> |
jointData1 |
|
CreateStiffSpring(float3, float3, Single, Single)
Declaration
public static BlobAssetReference<JointData> CreateStiffSpring(float3 positionAinA, float3 positionBinB, float minDistance, float maxDistance)
Parameters
Type |
Name |
Description |
float3 |
positionAinA |
|
float3 |
positionBinB |
|
System.Single |
minDistance |
|
System.Single |
maxDistance |
|
Returns
Type |
Description |
BlobAssetReference<JointData> |
|