docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct PhysicsGraphicalSmoothing

    A component to indicate that the graphical representation of a dynamic rigid body's motion should be smoothed when the rendering framerate is greater than the fixed step rate used by physics. When used on its own, it indicates that smoothing should extrapolate into the future based on the body's current velocity. The result is thus up-to-date, but can mis-predict the body's transformations since any future collision response has not yet been resolved. See also PhysicsGraphicalInterpolationBuffer.

    Implements
    IComponentData
    IQueryTypeParameter
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Physics.GraphicsIntegration
    Assembly: Unity.Physics.dll
    Syntax
    [WriteGroup(typeof(LocalToWorld))]
    public struct PhysicsGraphicalSmoothing : IComponentData, IQueryTypeParameter

    Fields

    ApplySmoothing

    If non-zero, apply smoothing. Set this value to 0 when teleporting a body to prevent smoothing the motion of its graphics representation. SmoothRigidBodiesGraphicalMotion will reset this value to 1 each frame.

    Declaration
    public byte ApplySmoothing
    Field Value
    Type Description
    byte

    CurrentVelocity

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

    Declaration
    public PhysicsVelocity CurrentVelocity
    Field Value
    Type Description
    PhysicsVelocity

    Implements

    IComponentData
    IQueryTypeParameter
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)