TwoBoneIK Class

Summary

An sample of how to use Animation Jobs in Animancer to apply simple two bone Inverse Kinematics, even to Generic Rigs which are not supported by Unity's inbuilt IK system.
Assembly
Animancer.dll
Namespace
Animancer.Samples.Jobs
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type["TwoBoneIK"] class Type type-node

Syntax

[AddComponentMenu(Strings.SamplesMenuPrefix + "Jobs - Two Bone IK")]
[AnimancerHelpUrl(typeof(TwoBoneIK))]
public class TwoBoneIK : MonoBehaviour

Remarks

This sample is based on Unity's Animation Jobs Samples.

This script sets up the job in place of TwoBoneIK.cs.

The Animancer.Samples.Jobs.TwoBoneIKJob script is almost identical to the original TwoBoneIKJob.cs.

The Animation Rigging package has an IK system which is much better than this sample.

Sample: Two Bone IK

Attributes

Type Description
AddComponentMenu
AnimancerHelpUrlAttribute [Assert-Conditional] A UnityEngine.HelpURLAttribute which points to Animancer's documentation.

Methods

Name Value Summary
Awake() void