SimpleLean Class

Summary

A wrapper that manages an Animation Job (the Animancer.Samples.Jobs.SimpleLean.Job struct nested inside this class) which rotates a set of bones to allow the character to dynamically lean over independantly of their animations.
Assembly
Animancer.dll
Namespace
Animancer.Samples.Jobs
Interfaces
  • IDisposable
Base Types
graph BT Type-->Base0["AnimancerJob<SimpleLean.Job>"] Base0-->Base1["Object"] Type-.->Interface0["IDisposable"] Type["SimpleLean"] class Type type-node

Syntax

public class SimpleLean : AnimancerJob<SimpleLean.Job>, IDisposable

Remarks

The axis around which the bones are rotated can be set to achieve several different effects:
  1. The right axis allows bending forwards and backwards.
  2. The up axis allows turning to either side.
  3. The forward axis allows leaning to either side.
https://github.com/KybernetikGames/animancer/issues/48#issuecomment-632336377

Sample: Hit Impacts

Constructors

Properties

Name Value Summary
Angle float
Axis Vector3

Methods

Name Value Summary
Destroy() void
Destroys the _Playable and restores the graph connection it was intercepting.