reckfellENGINE

BoneConstraint3D

A node that may modify Skeleton3D's bone with associating the two bones.

On this page
class BoneConstraint3DReckfellSharpInherits SkeletonModifier3D

A node that may modify Skeleton3D's bone with associating the two bones.

Base class of SkeletonModifier3D that modifies the bone set in BoneConstraint3D.SetApplyBone based on the transform of the bone retrieved by BoneConstraint3D.GetReferenceBone. Note: Most methods in this class take an index parameter. This parameter specifies which setting list entry to return if the IK has multiple entries (e.g. settings/<index>/amount).

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

BoneConstraint3DConstructor
# BoneConstraint3D
C#
public BoneConstraint3D();

Methods17

ClearSettingvoid
# ClearSetting
C#
public void ClearSetting();

Clear all settings.

GetAmountfloat
# GetAmount
C#
public float GetAmount(int index);

Returns the apply amount of the setting at index.

Parameters
NameTypeDefault
indexint—
Returns float
GetApplyBoneint
# GetApplyBone
C#
public int GetApplyBone(int index);

Returns the apply bone of the setting at index. This bone will be modified.

Parameters
NameTypeDefault
indexint—
Returns int
GetApplyBoneNamestring
# GetApplyBoneName
C#
public string GetApplyBoneName(int index);

Returns the apply bone name of the setting at index. This bone will be modified.

Parameters
NameTypeDefault
indexint—
Returns string
GetReferenceBoneint
# GetReferenceBone
C#
public int GetReferenceBone(int index);

Returns the reference bone of the setting at index. This bone will be only referenced and not modified by this modifier.

Parameters
NameTypeDefault
indexint—
Returns int
GetReferenceBoneNamestring
# GetReferenceBoneName
C#
public string GetReferenceBoneName(int index);

Returns the reference bone name of the setting at index. This bone will be only referenced and not modified by this modifier.

Parameters
NameTypeDefault
indexint—
Returns string
GetReferenceEntityEntityPath
# GetReferenceEntity
C#
public EntityPath GetReferenceEntity(int index);

Returns the reference node path of the setting at index. This node will only be referenced and not modified by this modifier.

Parameters
NameTypeDefault
indexint—
Returns EntityPath
GetReferenceTypeBoneConstraint3D.ReferenceType
# GetReferenceType
C#
public BoneConstraint3D.ReferenceType GetReferenceType(int index);

Returns the reference target type of the setting at index. See also BoneConstraint3D.ReferenceType.

Parameters
NameTypeDefault
indexint—
Returns BoneConstraint3D.ReferenceType
GetSettingCountint
# GetSettingCount
C#
public int GetSettingCount();

Returns the number of settings in the modifier.

Returns int
SetAmountvoid
# SetAmount
C#
public void SetAmount(int index, float amount);

Sets the apply amount of the setting at index to amount.

Parameters
NameTypeDefault
indexint—
amountfloat—
SetApplyBonevoid
# SetApplyBone
C#
public void SetApplyBone(int index, int bone);

Sets the apply bone of the setting at index to bone. This bone will be modified.

Parameters
NameTypeDefault
indexint—
boneint—
SetApplyBoneNamevoid
# SetApplyBoneName
C#
public void SetApplyBoneName(int index, string boneName);

Sets the apply bone of the setting at index to bone_name. This bone will be modified.

Parameters
NameTypeDefault
indexint—
boneNamestring—
SetReferenceBonevoid
# SetReferenceBone
C#
public void SetReferenceBone(int index, int bone);

Sets the reference bone of the setting at index to bone. This bone will only be referenced and not modified by this modifier.

Parameters
NameTypeDefault
indexint—
boneint—
SetReferenceBoneNamevoid
# SetReferenceBoneName
C#
public void SetReferenceBoneName(int index, string boneName);

Sets the reference bone of the setting at index to bone_name. This bone will only be referenced and not modified by this modifier.

Parameters
NameTypeDefault
indexint—
boneNamestring—
SetReferenceEntityvoid
# SetReferenceEntity
C#
public void SetReferenceEntity(int index, EntityPath node);

Sets the reference node path of the setting at index to node. This node will only be referenced and not modified by this modifier.

Parameters
NameTypeDefault
indexint—
nodeEntityPath—
SetReferenceTypevoid
# SetReferenceType
C#
public void SetReferenceType(int index, BoneConstraint3D.ReferenceType type);

Sets the reference target type of the setting at index to type. See also BoneConstraint3D.ReferenceType.

Parameters
NameTypeDefault
indexint—
typeBoneConstraint3D.ReferenceType—
SetSettingCountvoid
# SetSettingCount
C#
public void SetSettingCount(int count);

Sets the number of settings in the modifier.

Parameters
NameTypeDefault
countint—

BoneConstraint3D.ReferenceType

ValueDescription
Bone = 0

The reference target is a bone. In this case, the reference target space is local space.

Node = 1

The reference target is a Entity3D. In this case, the reference target space is model space. In other words, the reference target's coordinates are treated as if it was placed directly under the Skeleton3D parent of the BoneConstraint3D.

Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.