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).
Inherited Members
Unity.Entities.SystemBase.GetBuffer<T>(Unity.Entities.Entity)
Unity.Entities.SystemBase.GetBufferFromEntity<T>(System.Boolean)
Unity.Entities.SystemBase.OnCreateForCompiler()
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()
Unity.Entities.ComponentSystemBase.ExecutingSystemType
Namespace: Unity.Physics.GraphicsIntegration
Syntax
public class CopyPhysicsVelocityToSmoothing : SystemBase, IPhysicsSystem
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)
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
OnUpdate()
Declaration
protected override void OnUpdate()