Class ThirdPersonSetup
- Namespace
- CodeSmile.AnyMotion.AnimateYourself.Samples.Editor /
- Assembly
- ApiSource.dll
Adds a CharacterController, the movement component and a working Cinemachine third-person rig to a selected humanoid, so that wiring is produced by one command instead of by hand.
public static class ThirdPersonSetup
Expand Details ...
- Inheritance
-
objectThirdPersonSetup
Remarks
Everything goes on the character itself:
Character CharacterController + movement + AnimateHumanoid + the rig
+-- CameraTarget <- what the camera follows and looks at
There is no separate visual root. It was required until 2026-08-23 on the belief that the movement component and the gait drivers would otherwise write the same transform; measurement showed the drivers write the character's bones and never the object the components sit on, so the extra object bought nothing and the requirement was removed. Wiring Cinemachine 3 by hand is several components and one easily-missed input reference, so it is done here too rather than left as a set of instructions.