Class Integrator
Integrates world's motions.
Inherited Members
Namespace: Unity.Physics
Assembly: Unity.Physics.dll
Syntax
public static class Integrator
Methods
Integrate(NativeArray<MotionData>, NativeArray<MotionVelocity>, float)
Integrate the world's motions forward by the given time step.
Declaration
public static void Integrate(NativeArray<MotionData> motionDatas, NativeArray<MotionVelocity> motionVelocities, float timeStep)
Parameters
Type | Name | Description |
---|---|---|
Native |
motionDatas | The motion datas. |
Native |
motionVelocities | The motion velocities. |
float | timeStep | The time step. |
Integrate(ref RigidTransform, in MotionVelocity, in float)
Integrate a single transform for the provided velocity and time.
Declaration
public static void Integrate(ref RigidTransform transform, in MotionVelocity motionVelocity, in float timeStep)
Parameters
Type | Name | Description |
---|---|---|
Rigid |
transform | [in,out] The transform. |
Motion |
motionVelocity | The motion velocity. |
float | timeStep | The time step. |