IKChainBlueprint

public class IKChainBlueprint

Represents a complete IK chain definition from a Blockbench model. An IK chain consists of: - A series of bones from root (ik_source) to tip - A target position (from a locator or bone) - A controller (null object) that animates the chain The chain is built by walking UP from the target to the source bone, then reversing to get root-to-tip order (as Blockbench does).

Constructors

Link copied to clipboard
public void IKChainBlueprint(List<BoneBlueprint> chainBones, LocatorBlueprint targetLocator, NullObjectBlueprint controller)
Creates an IK chain with a locator as the target.
public void IKChainBlueprint(List<BoneBlueprint> chainBones, BoneBlueprint targetBone, NullObjectBlueprint controller)
Creates an IK chain with a bone as the target.

Properties

Link copied to clipboard
public final Array<float> boneLengths
Link copied to clipboard
public final List<BoneBlueprint> chainBones
Link copied to clipboard
Link copied to clipboard
public final Vector3f endEffectorPosition
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
public int getBoneCount()
Gets the number of bones in the chain.
Link copied to clipboard
public Array<float> getBoneLengths()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Vector3f getEndEffectorPosition()
Link copied to clipboard
Gets the root bone of the chain (first bone, ik_source).
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Gets the tip bone of the chain (last bone before end effector).
Link copied to clipboard
public float getTotalLength()
Gets the total length of the chain (sum of all bone lengths).
Link copied to clipboard
public boolean hasLocatorTarget()
Checks if the chain uses a locator as target (vs a bone).