Class BufferInterpolatedRigidBodiesMotion | Unity Physics | 0.5.1-preview.2
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
    ComponentSystemBase
    SystemBase
    BufferInterpolatedRigidBodiesMotion
    Inherited Members
    SystemBase.CompleteDependency()
    SystemBase.Update()
    SystemBase.GetComponent<T>(Entity)
    SystemBase.SetComponent<T>(Entity, T)
    SystemBase.HasComponent<T>(Entity)
    SystemBase.GetComponentDataFromEntity<T>(Boolean)
    Unity.Entities.SystemBase.GetBuffer<T>(Unity.Entities.Entity)
    Unity.Entities.SystemBase.GetBufferFromEntity<T>(System.Boolean)
    Unity.Entities.SystemBase.OnCreateForCompiler()
    SystemBase.Dependency
    SystemBase.Entities
    SystemBase.Job
    ComponentSystemBase.OnStartRunning()
    ComponentSystemBase.OnStopRunning()
    ComponentSystemBase.OnDestroy()
    ComponentSystemBase.ShouldRunSystem()
    Unity.Entities.ComponentSystemBase.GetComponentTypeHandle<T>(System.Boolean)
    Unity.Entities.ComponentSystemBase.GetDynamicComponentTypeHandle(Unity.Entities.ComponentType)
    Unity.Entities.ComponentSystemBase.GetBufferTypeHandle<T>(System.Boolean)
    Unity.Entities.ComponentSystemBase.GetSharedComponentTypeHandle<T>()
    Unity.Entities.ComponentSystemBase.GetEntityTypeHandle()
    ComponentSystemBase.RequireForUpdate(EntityQuery)
    ComponentSystemBase.RequireSingletonForUpdate<T>()
    ComponentSystemBase.HasSingleton<T>()
    ComponentSystemBase.GetSingleton<T>()
    ComponentSystemBase.SetSingleton<T>(T)
    ComponentSystemBase.GetSingletonEntity<T>()
    ComponentSystemBase.GetEntityQuery(ComponentType[])
    ComponentSystemBase.GetEntityQuery(NativeArray<ComponentType>)
    ComponentSystemBase.GetEntityQuery(EntityQueryDesc[])
    ComponentSystemBase.GetArchetypeChunkComponentType<T>(Boolean)
    ComponentSystemBase.GetArchetypeChunkComponentTypeDynamic(ComponentType)
    ComponentSystemBase.GetArchetypeChunkBufferType<T>(Boolean)
    ComponentSystemBase.GetArchetypeChunkSharedComponentType<T>()
    ComponentSystemBase.GetArchetypeChunkEntityType()
    ComponentSystemBase.Enabled
    ComponentSystemBase.EntityQueries
    ComponentSystemBase.GlobalSystemVersion
    ComponentSystemBase.LastSystemVersion
    ComponentSystemBase.EntityManager
    ComponentSystemBase.World
    ComponentSystemBase.Time
    Unity.Entities.ComponentSystemBase.ExecutingSystemType
    Namespace: Unity.Physics.GraphicsIntegration
    Syntax
    public class BufferInterpolatedRigidBodiesMotion : SystemBase, IPhysicsSystem

    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)

    Inject an input dependency into this system's job chain.

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

    The JobHandle for the dependency.

    GetOutputDependency()

    Get the final job handle for this system;

    Declaration
    public JobHandle GetOutputDependency()
    Returns
    Type Description
    JobHandle

    OnCreate()

    Declaration
    protected override void OnCreate()
    Overrides
    ComponentSystemBase.OnCreate()

    OnUpdate()

    Declaration
    protected override void OnUpdate()
    Overrides
    SystemBase.OnUpdate()
    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