docs.unity3d.com
    Show / Hide Table of Contents

    Struct CharacterInterpolation

    Component used for handling character interpolation. By default, the component is only added if interpolation was enabled in authoring

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.CharacterController
    Syntax
    [Serializable]
    [WriteGroup(typeof(LocalToWorld))]
    public struct CharacterInterpolation : IComponentData, IQueryTypeParameter

    Fields

    InterpolatePosition

    Whether or not to interpolate position

    Declaration
    public byte InterpolatePosition
    Field Value
    Type Description
    Byte

    InterpolateRotation

    Whether or not to interpolate rotation

    Declaration
    public byte InterpolateRotation
    Field Value
    Type Description
    Byte

    InterpolationFromTransform

    The "previous" transform to interpolate from

    Declaration
    public RigidTransform InterpolationFromTransform
    Field Value
    Type Description
    RigidTransform

    InterpolationSkipping

    Flags for skipping interpolation

    Declaration
    public byte InterpolationSkipping
    Field Value
    Type Description
    Byte

    Methods

    ShouldSkipNextPositionInterpolation()

    Whether or not the interpolation flags are set to skip position interpolation

    Declaration
    public bool ShouldSkipNextPositionInterpolation()
    Returns
    Type Description
    Boolean

    Whether or not the interpolation flags are set to skip position interpolation

    ShouldSkipNextRotationInterpolation()

    Whether or not the interpolation flags are set to skip rotation interpolation

    Declaration
    public bool ShouldSkipNextRotationInterpolation()
    Returns
    Type Description
    Boolean

    Whether or not the interpolation flags are set to skip rotation interpolation

    SkipNextInterpolation()

    Sets interpolation flags to skip position and rotation interpolation

    Declaration
    public void SkipNextInterpolation()

    SkipNextPositionInterpolation()

    Sets interpolation flags to skip position interpolation

    Declaration
    public void SkipNextPositionInterpolation()

    SkipNextRotationInterpolation()

    Sets interpolation flags to skip rotation interpolation

    Declaration
    public void SkipNextRotationInterpolation()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023