Method Solve
Solve(float, float, float3, float, NativeList<SurfaceConstraintInfo>, ref float3, ref float3, out float, bool)
Solves.
Declaration
public static void Solve(float deltaTime, float minDeltaTime, float3 up, float maxVelocity, NativeList<SurfaceConstraintInfo> constraints, ref float3 position, ref float3 velocity, out float integratedTime, bool useConstraintVelocities = true)
Parameters
Type | Name | Description |
---|---|---|
float | deltaTime | The delta time. |
float | minDeltaTime | The minimum time delta time. |
float3 | up | The up vector. |
float | maxVelocity | The maximum velocity. |
NativeList<SurfaceConstraintInfo> | constraints | The constraints. |
float3 | position | [in,out] The position. |
float3 | velocity | [in,out] The velocity. |
float | integratedTime | [out] The integrated time. |
bool | useConstraintVelocities | (Optional) True to use constraint velocities. |