Documentation

Unity Engine

Unity Engine

bodyRotation

The rotation of the body center of mass.
Read time 1 minuteLast updated 2 months ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AnimationModule
public Quaternion bodyRotation { get; set; }

Remarks

The rotation is in worldspace. You should only set this value from within an OnAnimatorIK() function call.