API

Class FBXConstraintBehavior

Babylon behavior evaluating an FBX aim, parent, position, rotation or scale constraint.

Implements

Index
attachedNode: Nullable<TransformNode> = null

Node the behavior is attached to

constraint: FBXConstraintData

Constraint data extracted from the file

enabled: boolean = true

Set to false to pause the constraint without detaching it

name: string

Behavior name (fbxConstraint: followed by the constraint name)

  • Registers the behavior with the scene's solver, takes the node's current transform as the unconstrained value and solves the constraint once.

    Parameters

    • target: TransformNode

      Node to constrain

    Returns void

  • Takes the node's current transform as the unconstrained value the next solve blends from. The solver calls this after the scene's animations ran; call it yourself after writing a transform by hand.

    Returns void

  • Nodes whose world transform the solve reads: the targets, the up node and the constrained node's parent.

    Returns Nullable<Node>[]

    The nodes, used by the solver to order constraints

  • Solves the constraint from the captured unconstrained transform and writes the node's local transform. Blends are relative to the value captured by captureBase, not to whatever the node holds now.

    Returns void

  • Writes the unconstrained transform back to the node. The solver calls this before the scene's animations run, so a node nothing animates keeps its unconstrained value between frames instead of the solved one.

    Returns void