Documentation
¶
Overview ¶
Package SkeletonModification2DPhysicalBones provides methods for working with SkeletonModification2DPhysicalBones 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) AsSkeletonModification2DPhysicalBones() Instance
- func (self Instance) FetchPhysicalBones()
- func (self Instance) GetPhysicalBoneNode(joint_idx int) string
- func (self Instance) PhysicalBoneChainLength() int
- func (self Instance) SetPhysicalBoneChainLength(value int)
- func (self Instance) SetPhysicalBoneNode(joint_idx int, physicalbone2d_node string)
- func (self Instance) StartSimulation()
- func (self Instance) StopSimulation()
- 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.SkeletonModification2DPhysicalBones
This modification takes the transforms of [PhysicalBone2D] nodes and applies them to [Bone2D] nodes. This allows the [Bone2D] nodes to react to physics thanks to the linked [PhysicalBone2D] nodes.
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) AsSkeletonModification2DPhysicalBones ¶
func (Instance) FetchPhysicalBones ¶
func (self Instance) FetchPhysicalBones()
Empties the list of [PhysicalBone2D] nodes and populates it with all [PhysicalBone2D] nodes that are children of the [Skeleton2D].
func (Instance) GetPhysicalBoneNode ¶
Returns the [PhysicalBone2D] node at [param joint_idx].
func (Instance) PhysicalBoneChainLength ¶
func (Instance) SetPhysicalBoneChainLength ¶
func (Instance) SetPhysicalBoneNode ¶
Sets the [PhysicalBone2D] node at [param joint_idx]. [b]Note:[/b] This is just the index used for this modification, not the bone index used in the [Skeleton2D].
func (Instance) StartSimulation ¶
func (self Instance) StartSimulation()
Tell the [PhysicalBone2D] nodes to start simulating and interacting with the physics world. Optionally, an array of bone names can be passed to this function, and that will cause only [PhysicalBone2D] nodes with those names to start simulating.
func (Instance) StopSimulation ¶
func (self Instance) StopSimulation()
Tell the [PhysicalBone2D] nodes to stop simulating and interacting with the physics world. Optionally, an array of bone names can be passed to this function, and that will cause only [PhysicalBone2D] nodes with those names to stop simulating.