Documentation
¶
Overview ¶
This is a simple version of LookAtModifier3D that only allows bone to the reference without advanced options such as angle limitation or time-based interpolation.
The feature is simplified, but instead it is implemented with smooth tracking without euler, see SetUseEuler.
Index ¶
- type Advanced
- type Any
- type Extension
- func (self *Extension[T]) AsAimModifier3D() Instance
- func (self *Extension[T]) AsBoneConstraint3D() BoneConstraint3D.Instance
- func (self *Extension[T]) AsNode() Node.Instance
- func (self *Extension[T]) AsNode3D() Node3D.Instance
- func (self *Extension[T]) AsObject() [1]gd.Object
- func (self *Extension[T]) AsSkeletonModifier3D() SkeletonModifier3D.Instance
- type ID
- type Instance
- func (self Instance) AsAimModifier3D() Instance
- func (self Instance) AsBoneConstraint3D() BoneConstraint3D.Instance
- func (self Instance) AsNode() Node.Instance
- func (self Instance) AsNode3D() Node3D.Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsSkeletonModifier3D() SkeletonModifier3D.Instance
- func (self Instance) GetForwardAxis(index int) SkeletonModifier3D.BoneAxis
- func (self Instance) GetPrimaryRotationAxis(index int) Vector3.Axis
- func (self Instance) ID() ID
- func (self Instance) IsUsingEuler(index int) bool
- func (self Instance) IsUsingSecondaryRotation(index int) bool
- func (self Instance) SetForwardAxis(index int, axis SkeletonModifier3D.BoneAxis)
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) SetPrimaryRotationAxis(index int, axis Vector3.Axis)
- func (self Instance) SetUseEuler(index int, enabled bool)
- func (self Instance) SetUseSecondaryRotation(index int, enabled bool)
- func (self Instance) Virtual(name string) reflect.Value
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 Extension ¶
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]) AsAimModifier3D ¶
func (*Extension[T]) AsBoneConstraint3D ¶
func (self *Extension[T]) AsBoneConstraint3D() BoneConstraint3D.Instance
func (*Extension[T]) AsSkeletonModifier3D ¶
func (self *Extension[T]) AsSkeletonModifier3D() SkeletonModifier3D.Instance
type 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.
type Instance ¶
type Instance [1]gdclass.AimModifier3D
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 (Instance) AsAimModifier3D ¶
func (Instance) AsBoneConstraint3D ¶
func (self Instance) AsBoneConstraint3D() BoneConstraint3D.Instance
func (Instance) AsSkeletonModifier3D ¶
func (self Instance) AsSkeletonModifier3D() SkeletonModifier3D.Instance
func (Instance) GetForwardAxis ¶
func (self Instance) GetForwardAxis(index int) SkeletonModifier3D.BoneAxis
Returns the forward axis of the bone.
func (Instance) GetPrimaryRotationAxis ¶
Returns the axis of the first rotation. It is enabled only if IsUsingEuler is true.
func (Instance) IsUsingEuler ¶
Returns true if it provides rotation with using euler.
func (Instance) IsUsingSecondaryRotation ¶
Returns true if it provides rotation by two axes. It is enabled only if IsUsingEuler is true.
func (Instance) SetForwardAxis ¶
func (self Instance) SetForwardAxis(index int, axis SkeletonModifier3D.BoneAxis)
Sets the forward axis of the bone.
func (Instance) SetPrimaryRotationAxis ¶
Sets the axis of the first rotation. It is enabled only if IsUsingEuler is true.
func (Instance) SetUseEuler ¶
If sets 'enabled' to true, it provides rotation with using euler.
If sets 'enabled' to false, it provides rotation with using rotation by arc generated from the forward axis vector and the vector toward the reference.
func (Instance) SetUseSecondaryRotation ¶
If sets 'enabled' to true, it provides rotation by two axes. It is enabled only if IsUsingEuler is true.