nixonyh/GPUClothSimulationInUnity

Display error of running program unity

Opened this issue · 3 comments

企业微信截图_8cca59d1-9d9e-40ee-a0b4-c76889af3c7d

Or display such an error:
`UnassignedReferenceException: The variable clothSolver of GPUClothSimulation has not been assigned.
You probably need to assign the clothSolver variable of the GPUClothSimulation script in the inspector.
GPUClothSimulation.SimulateOneTimeStep () (at Assets/GPUClothSimulation/Scripts/GPUClothSimulation.cs:137)
GPUClothSimulation.Update () (at Assets/GPUClothSimulation/Scripts/GPUClothSimulation.cs:113)

NullReferenceException: Object reference not set to an instance of an object
GPUClothSimulationLegacy.DispatchKernels () (at Assets/GPUClothSimulation/Scripts/GPUClothSimulationLegacy.cs:445)
GPUClothSimulationLegacy.FixedUpdate () (at Assets/GPUClothSimulation/Scripts/GPUClothSimulationLegacy.cs:204)

IndexOutOfRangeException: Index was outside the bounds of the array.
GPUClothSimulation.Start () (at Assets/GPUClothSimulation/Scripts/GPUClothSimulation.cs:97)`

as mentioned in #5 , this project is really in a paused state for now until further announcement xd.

for now, I can only point you to some resources:

PBD / XPBD by Matthias Muller
for collision you can look for:

hope it helps!

for gpu accelerated cloth simulation in unity, here is one that I looked at when starting out: https://github.com/Ninjajie/Fusion