16-04-2019, 06:29 AM
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
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