reckfellENGINE

ConvertTransformModifier3D

A SkeletonModifier3D that apply transform to the bone which converted from reference.

On this page
class ConvertTransformModifier3DReckfellSharpInherits BoneConstraint3D

A SkeletonModifier3D that apply transform to the bone which converted from reference.

Apply the copied transform of the bone set by BoneConstraint3D.SetReferenceBone to the bone set by BoneConstraint3D.SetApplyBone about the specific axis with remapping it with some options. There are 4 ways to apply the transform, depending on the combination of ConvertTransformModifier3D.SetRelative and ConvertTransformModifier3D.SetAdditive. Relative + Additive:

  • Extract reference pose relative to the rest and add it to the apply bone's pose. Relative + Not Additive:
  • Extract reference pose relative to the rest and add it to the apply bone's rest. Not Relative + Additive:
  • Extract reference pose absolutely and add it to the apply bone's pose. Not Relative + Not Additive:
  • Extract reference pose absolutely and the apply bone's pose is replaced with it. Note: The relative and global options are only available when BoneConstraint3D.GetReferenceType is BoneConstraint3D.ReferenceType.Bone. See also BoneConstraint3D.ReferenceType. Note: If there is a rotation greater than 180 degrees with constrained axes, flipping may occur.

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

Constructors1

ConvertTransformModifier3DConstructor
# ConvertTransformModifier3D
C#
public ConvertTransformModifier3D();

Properties1

SettingCountProperty
# SettingCount
C#
public int SettingCount { get; set; }

The number of settings in the modifier.

Methods22

GetApplyAxisVector3.Axis
# GetApplyAxis
C#
public Vector3.Axis GetApplyAxis(int index);

Returns the axis of the remapping destination transform.

Parameters
NameTypeDefault
indexint—
Returns Vector3.Axis
GetApplyRangeMaxfloat
# GetApplyRangeMax
C#
public float GetApplyRangeMax(int index);

Returns the maximum value of the remapping destination range.

Parameters
NameTypeDefault
indexint—
Returns float
GetApplyRangeMinfloat
# GetApplyRangeMin
C#
public float GetApplyRangeMin(int index);

Returns the minimum value of the remapping destination range.

Parameters
NameTypeDefault
indexint—
Returns float
GetApplyTransformModeConvertTransformModifier3D.TransformMode
# GetApplyTransformMode
C#
public ConvertTransformModifier3D.TransformMode GetApplyTransformMode(int index);

Returns the operation of the remapping destination transform.

Parameters
NameTypeDefault
indexint—
Returns ConvertTransformModifier3D.TransformMode
GetReferenceAxisVector3.Axis
# GetReferenceAxis
C#
public Vector3.Axis GetReferenceAxis(int index);

Returns the axis of the remapping source transform.

Parameters
NameTypeDefault
indexint—
Returns Vector3.Axis
GetReferenceRangeMaxfloat
# GetReferenceRangeMax
C#
public float GetReferenceRangeMax(int index);

Returns the maximum value of the remapping source range.

Parameters
NameTypeDefault
indexint—
Returns float
GetReferenceRangeMinfloat
# GetReferenceRangeMin
C#
public float GetReferenceRangeMin(int index);

Returns the minimum value of the remapping source range.

Parameters
NameTypeDefault
indexint—
Returns float
GetReferenceTransformModeConvertTransformModifier3D.TransformMode
# GetReferenceTransformMode
C#
public ConvertTransformModifier3D.TransformMode GetReferenceTransformMode(int index);

Returns the operation of the remapping source transform.

Parameters
NameTypeDefault
indexint—
Returns ConvertTransformModifier3D.TransformMode
IsAdditivebool
# IsAdditive
C#
public bool IsAdditive(int index);

Returns true if the additive option is enabled in the setting at index.

Parameters
NameTypeDefault
indexint—
Returns bool
IsGlobalbool
# IsGlobal
C#
public bool IsGlobal(int index);

Returns true if the global option is enabled in the setting at index.

Parameters
NameTypeDefault
indexint—
Returns bool
IsRelativebool
# IsRelative
C#
public bool IsRelative(int index);

Returns true if the relative option is enabled in the setting at index.

Parameters
NameTypeDefault
indexint—
Returns bool
SetAdditivevoid
# SetAdditive
C#
public void SetAdditive(int index, bool enabled);

Sets additive option in the setting at index to enabled. This mainly affects the process of applying transform to the BoneConstraint3D.SetApplyBone. If enabled is true, the processed transform is added to the pose of the current apply bone. If enabled is false, the pose of the current apply bone is replaced with the processed transform. However, if set ConvertTransformModifier3D.SetRelative to true, the transform is relative to rest.

Parameters
NameTypeDefault
indexint—
enabledbool—
SetApplyAxisvoid
# SetApplyAxis
C#
public void SetApplyAxis(int index, Vector3.Axis axis);

Sets the axis of the remapping destination transform.

Parameters
NameTypeDefault
indexint—
axisVector3.Axis—
SetApplyRangeMaxvoid
# SetApplyRangeMax
C#
public void SetApplyRangeMax(int index, float rangeMax);

Sets the maximum value of the remapping destination range.

Parameters
NameTypeDefault
indexint—
rangeMaxfloat—
SetApplyRangeMinvoid
# SetApplyRangeMin
C#
public void SetApplyRangeMin(int index, float rangeMin);

Sets the minimum value of the remapping destination range.

Parameters
NameTypeDefault
indexint—
rangeMinfloat—
SetApplyTransformModevoid
# SetApplyTransformMode
C#
public void SetApplyTransformMode(int index, ConvertTransformModifier3D.TransformMode transformMode);

Sets the operation of the remapping destination transform.

Parameters
NameTypeDefault
indexint—
transformModeConvertTransformModifier3D.TransformMode—
SetGlobalvoid
# SetGlobal
C#
public void SetGlobal(int index, bool enabled);

Sets the global option in the setting at index to enabled. If enabled is true, the global pose of the reference bone is used as the remapping source. If enabled is false, the local pose of the reference bone is used as the remapping source. Note: If the parent of the reference bone has a non-uniform scale, the reference bone is sheared as seen from global space. Since the local pose cannot bring in the shear, the scale may not be applied as intended.

Parameters
NameTypeDefault
indexint—
enabledbool—
SetReferenceAxisvoid
# SetReferenceAxis
C#
public void SetReferenceAxis(int index, Vector3.Axis axis);

Sets the axis of the remapping source transform.

Parameters
NameTypeDefault
indexint—
axisVector3.Axis—
SetReferenceRangeMaxvoid
# SetReferenceRangeMax
C#
public void SetReferenceRangeMax(int index, float rangeMax);

Sets the maximum value of the remapping source range.

Parameters
NameTypeDefault
indexint—
rangeMaxfloat—
SetReferenceRangeMinvoid
# SetReferenceRangeMin
C#
public void SetReferenceRangeMin(int index, float rangeMin);

Sets the minimum value of the remapping source range.

Parameters
NameTypeDefault
indexint—
rangeMinfloat—
SetReferenceTransformModevoid
# SetReferenceTransformMode
C#
public void SetReferenceTransformMode(int index, ConvertTransformModifier3D.TransformMode transformMode);

Sets the operation of the remapping source transform.

Parameters
NameTypeDefault
indexint—
transformModeConvertTransformModifier3D.TransformMode—
SetRelativevoid
# SetRelative
C#
public void SetRelative(int index, bool enabled);

Sets relative option in the setting at index to enabled. If enabled is true, the extracted and applying transform is relative to the rest. If enabled is false, the extracted transform is absolute.

Parameters
NameTypeDefault
indexint—
enabledbool—

ConvertTransformModifier3D.TransformMode

ValueDescription
Position = 0

Convert with position. Transfer the difference.

Rotation = 1

Convert with rotation. The angle is the roll for the specified axis.

Scale = 2

Convert with scale. Transfers the ratio, not the difference.

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.