Class Solver
Syntax
public static class Solver
Methods
Declaration
[Obsolete("ApplyGravityAndCopyInputVelocities() has been deprecated. Use the new method that doesn't take NativeArray<MotionData> instead. (RemovedAfter 2020-09-04)")]
public static void ApplyGravityAndCopyInputVelocities(NativeArray<MotionData> motionDatas, NativeArray<MotionVelocity> motionVelocities, NativeArray<Velocity> inputVelocities, float3 gravityAcceleration)
Parameters
Declaration
public static void ApplyGravityAndCopyInputVelocities(NativeArray<MotionVelocity> motionVelocities, NativeArray<Velocity> inputVelocities, float3 gravityAcceleration)
Parameters
BuildJacobians(ref PhysicsWorld, Single, float3, Int32, NativeArray<DispatchPairSequencer.DispatchPair>, ref NativeStream.Reader, ref NativeStream.Writer)
Declaration
public static void BuildJacobians(ref PhysicsWorld world, float timeStep, float3 gravity, int numSolverIterations, NativeArray<DispatchPairSequencer.DispatchPair> dispatchPairs, ref NativeStream.Reader contactsReader, ref NativeStream.Writer jacobiansWriter)
Parameters
SolveJacobians(ref NativeStream.Reader, NativeArray<MotionVelocity>, Single, Int32, ref NativeStream.Writer, ref NativeStream.Writer)
Declaration
[Obsolete("SolveJacobians() has been deprecated. Use the new method that takes solver stabilization parameters instead. (RemovedAfter 2020-09-04)")]
public static void SolveJacobians(ref NativeStream.Reader jacobiansReader, NativeArray<MotionVelocity> motionVelocities, float timeStep, int numIterations, ref NativeStream.Writer collisionEventsWriter, ref NativeStream.Writer triggerEventsWriter)
Parameters
SolveJacobians(ref NativeStream.Reader, NativeArray<MotionVelocity>, Single, Int32, ref NativeStream.Writer, ref NativeStream.Writer, Solver.StabilizationData)
Declaration
public static void SolveJacobians(ref NativeStream.Reader jacobiansReader, NativeArray<MotionVelocity> motionVelocities, float timeStep, int numIterations, ref NativeStream.Writer collisionEventsWriter, ref NativeStream.Writer triggerEventsWriter, Solver.StabilizationData solverStabilizationData)
Parameters