SkeletonModification2DLookAt

package
v0.0.0-...-d9f4d4e Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package SkeletonModification2DLookAt provides methods for working with SkeletonModification2DLookAt object instances.

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
	AsSkeletonModification2DLookAt() Instance
}

type Instance

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 New

func New() Instance

func (Instance) AsObject

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

func (Instance) AsRefCounted

func (self Instance) AsRefCounted() [1]gd.RefCounted

func (Instance) AsResource

func (self Instance) AsResource() Resource.Instance

func (Instance) AsSkeletonModification2D

func (self Instance) AsSkeletonModification2D() SkeletonModification2D.Instance

func (Instance) AsSkeletonModification2DLookAt

func (self Instance) AsSkeletonModification2DLookAt() Instance

func (Instance) Bone2dNode

func (self Instance) Bone2dNode() string

func (Instance) BoneIndex

func (self Instance) BoneIndex() int

func (Instance) GetAdditionalRotation

func (self Instance) GetAdditionalRotation() Float.X

Returns the amount of additional rotation that is applied after the LookAt modification executes.

func (Instance) GetConstraintAngleInvert

func (self Instance) GetConstraintAngleInvert() bool

Returns whether the constraints to this modification are inverted or not.

func (Instance) GetConstraintAngleMax

func (self Instance) GetConstraintAngleMax() Float.X

Returns the constraint's maximum allowed angle.

func (Instance) GetConstraintAngleMin

func (self Instance) GetConstraintAngleMin() Float.X

Returns the constraint's minimum allowed angle.

func (Instance) GetEnableConstraint

func (self Instance) GetEnableConstraint() bool

Returns [code]true[/code] if the LookAt modification is using constraints.

func (Instance) SetAdditionalRotation

func (self Instance) SetAdditionalRotation(rotation Float.X)

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 (self Instance) SetBone2dNode(value string)

func (Instance) SetBoneIndex

func (self Instance) SetBoneIndex(value int)

func (Instance) SetConstraintAngleInvert

func (self Instance) SetConstraintAngleInvert(invert bool)

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

func (self Instance) SetConstraintAngleMax(angle_max Float.X)

Sets the constraint's maximum allowed angle.

func (Instance) SetConstraintAngleMin

func (self Instance) SetConstraintAngleMin(angle_min Float.X)

Sets the constraint's minimum allowed angle.

func (Instance) SetEnableConstraint

func (self Instance) SetEnableConstraint(enable_constraint bool)

Sets whether this modification will use constraints or not. When [code]true[/code], constraints will be applied when solving the LookAt modification.

func (Instance) SetTargetNodepath

func (self Instance) SetTargetNodepath(value string)

func (Instance) TargetNodepath

func (self Instance) TargetNodepath() string

func (*Instance) UnsafePointer

func (self *Instance) UnsafePointer() unsafe.Pointer

func (Instance) Virtual

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

Jump to

Keyboard shortcuts

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