Obi Official Forum
Obi 4.1 manual simulation does not work - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Cloth (https://obi.virtualmethodstudio.com/forum/forum-2.html)
+--- Thread: Obi 4.1 manual simulation does not work (/thread-1099.html)



Obi 4.1 manual simulation does not work - bobby - 16-04-2019

Hello there,

Thank you for the latest upgrade to Obi 4.1. The distance fields are a lot more accurate now.

However, in the previous Obi version, I was able to use this code to simulate Obi Cloth physics:

Physics.autoSimulation = false;
for (int i = 0; i < 350; i++)
{
    Physics.Simulate(0.02f);
    obiSolver.AccumulateSimulationTime(0.02f);
    obiSolver.SimulateStep(0.02f);
    obiSolver.EndFrame(0.02f);
}
Physics.autoSimulation = true;


However that code no longer works for Obi 4.1 (tested using a fresh project).

How would one go about simulating cloth physics in Obi 4.1?

Thanks


RE: Obi 4.1 manual simulation does not work - bobby - 18-04-2019

It seems like this was a problem with the sleep threshold since I was using a low gravity. It's fixed now