AnimationNodeBlendSpace2D

    A set of AnimationRootNodes placed on 2D coordinates, crossfading between the three adjacent ones. Used by AnimationTree.

    AnimationNodeBlendSpace2D.swift:21
    class AnimationNodeBlendSpace2D

    A resource used by AnimationNodeBlendTree.

    AnimationNodeBlendSpace1D represents a virtual 2D space on which AnimationRootNodes are placed. Outputs the linear blend of the three adjacent animations using a Vector2 weight. Adjacent in this context means the three AnimationRootNodes making up the triangle that contains the current value.

    You can add vertices to the blend space with addBlendPoint(node:pos:atIndex:) and automatically triangulate it by setting autoTriangles to true. Otherwise, use addTriangle(x:y:z:atIndex:) and removeTriangle(_:) to triangulate the blend space by hand.

    This object emits the following signals:

    Superclasses

    • class AnimationRootNode

      Base class for AnimationNodes that hold one or multiple composite animations. Usually used for treeRoot.

    Citizens in SwiftGodot

    Conformances

    • protocol CustomStringConvertible

      A type with a customized textual representation.

    • protocol Equatable

      A type that can be compared for value equality.

    • protocol Hashable

      A type that can be hashed into a Hasher to produce an integer hash value.

    • protocol Identifiable<ID>

      A class of types whose instances hold the value of an entity with stable identity.

    • protocol VariantRepresentable

      Types that conform to VariantRepresentable can be stored directly in Variant with no conversion. These include all of the Variant types from Godot (for example GString, Rect, Plane), Godot objects (those that subclass SwiftGodot.Object) as well as the built-in Swift types UInt8, Int64 and Double.

    • protocol VariantStorable

      Types that conform to VariantStorable can be stored in a Variant and can be extracted back out of a Variant.

    Types

    Type members

    Instance members