Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Obi 7 disable simulation
#5
(27-03-2025, 01:45 PM)josemendez Wrote: Yes, since they won't be overwritten by the simulation.

I am using Compute backend.

In my server app, the simulation is running and everything is fine. On my client, I am setting the positions and velocities like this:


Code:
for (int i = 0; i < positions.Count; ++i)
        {
            int solverIndex = actor.solverIndices[i];
            actor.solver.positions[solverIndex] = positions[i];
            actor.solver.velocities[solverIndex] = velocities[i];
.
.
.
where positions and velocities are synchronized lists. This worked very well in Obi 6, but now it doesn't work no matter what. Can you tell me if something else changed. It seems from documentation like positions and velocities are automatically synced to GPU so I don't know what I'm missing.
Reply


Messages In This Thread
Obi 7 disable simulation - by natko1412 - 27-03-2025, 11:34 AM
RE: Obi 7 disable simulation - by josemendez - 27-03-2025, 01:08 PM
RE: Obi 7 disable simulation - by natko1412 - 27-03-2025, 01:32 PM
RE: Obi 7 disable simulation - by josemendez - 27-03-2025, 01:45 PM
RE: Obi 7 disable simulation - by natko1412 - 27-03-2025, 05:49 PM
RE: Obi 7 disable simulation - by josemendez - 27-03-2025, 09:15 PM
RE: Obi 7 disable simulation - by natko1412 - 28-03-2025, 11:21 AM