docs.unity.cn
    Show / Hide Table of Contents

    Class CopyPhysicsVelocityToSmoothing

    A system that writes to a body's PhysicsGraphicalSmoothing component by copying its PhysicsVelocity after physics has stepped. These values are used for bodies whose graphics representations will be smoothed by the SmoothRigidBodiesGraphicalMotion system. Add a WriteGroupAttribute to your own component if you need to use a different value (as with a character controller).

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

    Properties

    SmoothedDynamicBodiesGroup

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

    Declaration
    public EntityQuery SmoothedDynamicBodiesGroup { 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 Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, April 26, 2022
    Terms of use