Documentation
¶
Overview ¶
Package SkeletonModification2DLookAt provides methods for working with SkeletonModification2DLookAt object instances.
Index ¶
- type Advanced
- type Any
- type Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) AsSkeletonModification2D() SkeletonModification2D.Instance
- func (self Instance) AsSkeletonModification2DLookAt() Instance
- func (self Instance) Bone2dNode() string
- func (self Instance) BoneIndex() int
- func (self Instance) GetAdditionalRotation() Float.X
- func (self Instance) GetConstraintAngleInvert() bool
- func (self Instance) GetConstraintAngleMax() Float.X
- func (self Instance) GetConstraintAngleMin() Float.X
- func (self Instance) GetEnableConstraint() bool
- func (self Instance) SetAdditionalRotation(rotation Float.X)
- func (self Instance) SetBone2dNode(value string)
- func (self Instance) SetBoneIndex(value int)
- func (self Instance) SetConstraintAngleInvert(invert bool)
- func (self Instance) SetConstraintAngleMax(angle_max Float.X)
- func (self Instance) SetConstraintAngleMin(angle_min Float.X)
- func (self Instance) SetEnableConstraint(enable_constraint bool)
- func (self Instance) SetTargetNodepath(value string)
- func (self Instance) TargetNodepath() string
- func (self *Instance) UnsafePointer() unsafe.Pointer
- 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 Instance ¶
type Instance [1]gdclass.SkeletonModification2DLookAt
This [SkeletonModification2D] rotates a bone to look a target. This is extremely helpful for moving character's head to look at the player, rotating a turret to look at a target, or any other case where you want to make a bone rotate towards something quickly and easily.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) AsSkeletonModification2D ¶
func (self Instance) AsSkeletonModification2D() SkeletonModification2D.Instance
func (Instance) AsSkeletonModification2DLookAt ¶
func (Instance) Bone2dNode ¶
func (Instance) GetAdditionalRotation ¶
Returns the amount of additional rotation that is applied after the LookAt modification executes.
func (Instance) GetConstraintAngleInvert ¶
Returns whether the constraints to this modification are inverted or not.
func (Instance) GetConstraintAngleMax ¶
Returns the constraint's maximum allowed angle.
func (Instance) GetConstraintAngleMin ¶
Returns the constraint's minimum allowed angle.
func (Instance) GetEnableConstraint ¶
Returns [code]true[/code] if the LookAt modification is using constraints.
func (Instance) SetAdditionalRotation ¶
Sets the amount of additional rotation that is to be applied after executing the modification. This allows for offsetting the results by the inputted rotation amount.
func (Instance) SetBone2dNode ¶
func (Instance) SetBoneIndex ¶
func (Instance) SetConstraintAngleInvert ¶
When [code]true[/code], the modification will use an inverted joint constraint. An inverted joint constraint only constraints the [Bone2D] to the angles [i]outside of[/i] the inputted minimum and maximum angles. For this reason, it is referred to as an inverted joint constraint, as it constraints the joint to the outside of the inputted values.
func (Instance) SetConstraintAngleMax ¶
Sets the constraint's maximum allowed angle.
func (Instance) SetConstraintAngleMin ¶
Sets the constraint's minimum allowed angle.
func (Instance) SetEnableConstraint ¶
Sets whether this modification will use constraints or not. When [code]true[/code], constraints will be applied when solving the LookAt modification.