Class SmoothRigidBodiesGraphicalMotion
A system that can smooth out the motion of rigid bodies if the fixed physics tick rate is slower than the variable graphics framerate. Each affected body's LocalToWorld is adjusted before rendering, but its underlying Translation and Rotation values are left alone.
Inherited Members
Unity.Entities.SystemBase.UnmanagedUpdate$BurstManaged(System.IntPtr, Unity.Entities.SystemDependencySafetyUtility.SafetyErrorDetails)
Namespace: Unity.Physics.GraphicsIntegration
Syntax
[UpdateInGroup(typeof(TransformSystemGroup))]
[UpdateBefore(typeof(TRSToLocalToWorldSystem))]
public class SmoothRigidBodiesGraphicalMotion : 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
[Obsolete("AddInputDependency() has been deprecated. Please call RegisterPhysicsRuntimeSystemReadWrite() or RegisterPhysicsRuntimeSystemReadOnly() in your system's OnStartRunning() to achieve the same effect. (RemovedAfter 2021-05-01)", true)]
public void AddInputDependency(JobHandle inputDep)
Parameters
Type | Name | Description |
---|---|---|
JobHandle | inputDep |
GetOutputDependency()
Declaration
[Obsolete("GetOutputDependency() has been deprecated. Please call RegisterPhysicsRuntimeSystemReadWrite() or RegisterPhysicsRuntimeSystemReadOnly() in your system's OnStartRunning() to achieve the same effect. (RemovedAfter 2021-05-01)", true)]
public JobHandle GetOutputDependency()
Returns
Type | Description |
---|---|
JobHandle |
OnCreate()
Declaration
protected override void OnCreate()
Overrides
OnUpdate()
Declaration
protected override void OnUpdate()