Struct PhysicsGraphicalInterpolationBuffer | Unity Physics | 0.5.1-preview.2
docs.unity3d.com
    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
    Unity.Mathematics.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 © 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