docs.unity3d.com
    Show / Hide Table of Contents

    Class BufferInterpolatedRigidBodiesMotion

    A system that writes to a rigid body's PhysicsGraphicalInterpolationBuffer component by copying its Translation, Rotation, and PhysicsVelocity before physics steps. These values are used for bodies whose graphics representations will be interpolated by the SmoothRigidBodiesGraphicalMotion system. Add a WriteGroupAttribute to your own component if you need to use different values (as with a character controller).

    NOTE: Consider the case when an interpolated rigid body needs to be teleported (i.e. have its Translation, Rotation or PhysicsVelocity components changed directly), specifically after this system is updated and before SmoothRigidBodiesGraphicalMotion is updated. In that case, you should set associated ApplySmoothing to 0. or assign the appropriate new PhysicsGraphicalInterpolationBuffer component values as well.

    Inheritance
    Object
    BufferInterpolatedRigidBodiesMotion
    Namespace: Unity.Physics.GraphicsIntegration
    Syntax
    public class BufferInterpolatedRigidBodiesMotion : SystemBase

    Properties

    InterpolatedDynamicBodiesGroup

    An entity query matching dynamic rigid bodies whose graphical motion should be interpolated.

    Declaration
    public EntityQuery InterpolatedDynamicBodiesGroup { get; }
    Property Value
    Type Description
    EntityQuery

    Methods

    AddInputDependency(JobHandle)

    Declaration
    public void AddInputDependency(JobHandle inputDep)
    Parameters
    Type Name Description
    JobHandle inputDep

    GetOutputDependency()

    Declaration
    public JobHandle GetOutputDependency()
    Returns
    Type Description
    JobHandle

    OnCreate()

    Declaration
    protected override void OnCreate()

    OnUpdate()

    Declaration
    protected override void OnUpdate()
    Back to top
    Terms of use
    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