ConvertTransformModifier3D

package
v0.0.0-...-ff35923 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2025 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Apply the copied transform of the bone set by graphics.gd/classdb/BoneConstraint3D.Instance.SetReferenceBone to the bone set by graphics.gd/classdb/BoneConstraint3D.Instance.SetApplyBone about the specific axis with remapping it with some options.

There are 4 ways to apply the transform, depending on the combination of Instance.SetRelative and Instance.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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advanced

type Advanced = class

Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.

type Any

type Any interface {
	gd.IsClass
	AsConvertTransformModifier3D() Instance
}

type Extension

type Extension[T gdclass.Interface] struct{ gdclass.Extension[T, Instance] }

Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension

func (*Extension[T]) AsBoneConstraint3D

func (self *Extension[T]) AsBoneConstraint3D() BoneConstraint3D.Instance

func (*Extension[T]) AsConvertTransformModifier3D

func (self *Extension[T]) AsConvertTransformModifier3D() Instance

func (*Extension[T]) AsNode

func (self *Extension[T]) AsNode() Node.Instance

func (*Extension[T]) AsNode3D

func (self *Extension[T]) AsNode3D() Node3D.Instance

func (*Extension[T]) AsObject

func (self *Extension[T]) AsObject() [1]gd.Object

func (*Extension[T]) AsSkeletonModifier3D

func (self *Extension[T]) AsSkeletonModifier3D() SkeletonModifier3D.Instance

type ID

type ID Object.ID

ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.

func (ID) Instance

func (id ID) Instance() (Instance, bool)

type Instance

Instance of the class with convieniently typed arguments and results.

var Nil Instance

Nil is a nil/null instance of the class. Equivalent to the zero value.

func New

func New() Instance

func (Instance) AsBoneConstraint3D

func (self Instance) AsBoneConstraint3D() BoneConstraint3D.Instance

func (Instance) AsConvertTransformModifier3D

func (self Instance) AsConvertTransformModifier3D() Instance

func (Instance) AsNode

func (self Instance) AsNode() Node.Instance

func (Instance) AsNode3D

func (self Instance) AsNode3D() Node3D.Instance

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) AsSkeletonModifier3D

func (self Instance) AsSkeletonModifier3D() SkeletonModifier3D.Instance

func (Instance) GetApplyAxis

func (self Instance) GetApplyAxis(index int) Vector3.Axis

Returns the axis of the remapping destination transform.

func (Instance) GetApplyRangeMax

func (self Instance) GetApplyRangeMax(index int) Float.X

Returns the maximum value of the remapping destination range.

func (Instance) GetApplyRangeMin

func (self Instance) GetApplyRangeMin(index int) Float.X

Returns the minimum value of the remapping destination range.

func (Instance) GetApplyTransformMode

func (self Instance) GetApplyTransformMode(index int) TransformMode

Returns the operation of the remapping destination transform.

func (Instance) GetReferenceAxis

func (self Instance) GetReferenceAxis(index int) Vector3.Axis

Returns the axis of the remapping source transform.

func (Instance) GetReferenceRangeMax

func (self Instance) GetReferenceRangeMax(index int) Float.X

Returns the maximum value of the remapping source range.

func (Instance) GetReferenceRangeMin

func (self Instance) GetReferenceRangeMin(index int) Float.X

Returns the minimum value of the remapping source range.

func (Instance) GetReferenceTransformMode

func (self Instance) GetReferenceTransformMode(index int) TransformMode

Returns the operation of the remapping source transform.

func (Instance) ID

func (self Instance) ID() ID

func (Instance) IsAdditive

func (self Instance) IsAdditive(index int) bool

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

func (Instance) IsRelative

func (self Instance) IsRelative(index int) bool

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

func (Instance) SetAdditive

func (self Instance) SetAdditive(index int, enabled bool)

Sets additive option in the setting at 'index' to 'enabled'. This mainly affects the process of applying transform to the graphics.gd/classdb/BoneConstraint3D.Instance.SetApplyBone.

If sets 'enabled' to true, the processed transform is added to the pose of the current apply bone.

If sets 'enabled' to false, the pose of the current apply bone is replaced with the processed transform. However, if set Instance.SetRelative to true, the transform is relative to rest.

func (Instance) SetApplyAxis

func (self Instance) SetApplyAxis(index int, axis Vector3.Axis)

Sets the axis of the remapping destination transform.

func (Instance) SetApplyRangeMax

func (self Instance) SetApplyRangeMax(index int, range_max Float.X)

Sets the maximum value of the remapping destination range.

func (Instance) SetApplyRangeMin

func (self Instance) SetApplyRangeMin(index int, range_min Float.X)

Sets the minimum value of the remapping destination range.

func (Instance) SetApplyTransformMode

func (self Instance) SetApplyTransformMode(index int, transform_mode TransformMode)

Sets the operation of the remapping destination transform.

func (*Instance) SetObject

func (self *Instance) SetObject(obj [1]gd.Object) bool

func (Instance) SetReferenceAxis

func (self Instance) SetReferenceAxis(index int, axis Vector3.Axis)

Sets the axis of the remapping source transform.

func (Instance) SetReferenceRangeMax

func (self Instance) SetReferenceRangeMax(index int, range_max Float.X)

Sets the maximum value of the remapping source range.

func (Instance) SetReferenceRangeMin

func (self Instance) SetReferenceRangeMin(index int, range_min Float.X)

Sets the minimum value of the remapping source range.

func (Instance) SetReferenceTransformMode

func (self Instance) SetReferenceTransformMode(index int, transform_mode TransformMode)

Sets the operation of the remapping source transform.

func (Instance) SetRelative

func (self Instance) SetRelative(index int, enabled bool)

Sets relative option in the setting at 'index' to 'enabled'.

If sets 'enabled' to true, the extracted and applying transform is relative to the rest.

If sets 'enabled' to false, the extracted transform is absolute.

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

type TransformMode

type TransformMode int //gd:ConvertTransformModifier3D.TransformMode
const (
	// Convert with position. Transfer the difference.
	TransformModePosition TransformMode = 0
	// Convert with rotation. The angle is the roll for the specified axis.
	TransformModeRotation TransformMode = 1
	// Convert with scale. Transfers the ratio, not the difference.
	TransformModeScale TransformMode = 2
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL