docs.unity.cn
    Show / Hide Table of Contents

    Struct PhysicsGraphicalInterpolationBuffer

    Stores the state of a rigid body from the previous physics tick in order to interpolate the motion of the body's graphical representation. When used in conjunction with PhysicsGraphicalSmoothing, it indicates that smoothing should interpolate between the two most recent physics simulation ticks. The result is thus a more accurate representation of the physics simulation, but is one tick behind.

    Namespace: Unity.Physics.GraphicsIntegration
    Syntax
    public struct PhysicsGraphicalInterpolationBuffer : IComponentData

    Fields

    PreviousTransform

    The body's position and orientation from the previous physics tick.

    Declaration
    public RigidTransform PreviousTransform
    Field Value
    Type Description
    RigidTransform

    PreviousVelocity

    The body's linear and angular velocity from the previous physics tick.

    Declaration
    public PhysicsVelocity PreviousVelocity
    Field Value
    Type Description
    PhysicsVelocity
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, April 26, 2022
    Terms of use