Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Suggestion / Idea  ECS Physics/Graphics Support
#10
(07-05-2026, 03:22 PM)josemendez Wrote: Unless you’re using both PhysX and Unity Physics simultaneously (I’m not even sure if that’s possible) I fail to see why you can’t just set both to the same value? This is by far the simplest and most robust fix.

Maybe you’re using FixedUpdate() for non physics related stuff?

I have tested this, and it does not fix the issue just out of the box. The positions will still be interplated from "Interpolate Position From Physics" system, and then there will be one or multiple physics steps next frame that cause inaccurate impulses by translation deltas.

(07-05-2026, 03:22 PM)josemendez Wrote: This is what asynchronous mode does: it accumulates all fixed updates triggered during the last frame and takes a single, longer step with a multiple of the fixed timestep (note that substepping still applies).

Yes, but this out of the box for me uses my interpolated positions. I could try to set the positions to fixed ones temporarily before LateUpdate to update them right before rendering, but it's a bit of a hack and not really fool proof. Using this mode without my setup, does it not cause inaccuracies in impulses from world inertia as well? Additional question to that; does rigidbody interpolation happen before Obi Updates, i.e. are positions based on rigidbody interpolation or the fixed position if one would use those?


(07-05-2026, 03:22 PM)josemendez Wrote: This should be already possible by calling StartSimulation() and CompleteSimulation() manually. I’ll whip up an example and share it with you.

Somewhat, yes. I can of course modify it all (probably how I will proceed to keep it as package and add a patch on top), but would be nice if the asset provided more customization so that could be avoided. LateUpdate e.g. contains the interpolation by accumulatedTime that would be nice to use.

Best regards
Reply


Messages In This Thread
ECS Physics/Graphics Support - by Jawsarn - 23-04-2026, 09:29 PM
RE: ECS Physics/Graphics Support - by josemendez - 24-04-2026, 08:39 AM
RE: ECS Physics/Graphics Support - by Jawsarn - 25-04-2026, 10:49 PM
RE: ECS Physics/Graphics Support - by josemendez - 27-04-2026, 09:00 AM
RE: ECS Physics/Graphics Support - by Jawsarn - 27-04-2026, 09:45 PM
RE: ECS Physics/Graphics Support - by Jawsarn - 07-05-2026, 09:49 AM
RE: ECS Physics/Graphics Support - by josemendez - 07-05-2026, 10:34 AM
RE: ECS Physics/Graphics Support - by Jawsarn - 07-05-2026, 02:29 PM
RE: ECS Physics/Graphics Support - by josemendez - 07-05-2026, 03:22 PM
RE: ECS Physics/Graphics Support - by Jawsarn - 07-05-2026, 05:42 PM
RE: ECS Physics/Graphics Support - by josemendez - 07-05-2026, 06:36 PM
RE: ECS Physics/Graphics Support - by Jawsarn - 07-05-2026, 07:29 PM
RE: ECS Physics/Graphics Support - by josemendez - 08-05-2026, 08:50 AM
RE: ECS Physics/Graphics Support - by Jawsarn - 08-05-2026, 08:54 AM
RE: ECS Physics/Graphics Support - by josemendez - 08-05-2026, 09:02 AM
RE: ECS Physics/Graphics Support - by Jawsarn - 08-05-2026, 09:17 AM
RE: ECS Physics/Graphics Support - by josemendez - 08-05-2026, 11:21 AM
RE: ECS Physics/Graphics Support - by Jawsarn - 15-05-2026, 04:16 PM
RE: ECS Physics/Graphics Support - by Jawsarn - 16-05-2026, 07:46 PM
RE: ECS Physics/Graphics Support - by josemendez - 17-05-2026, 09:21 AM
RE: ECS Physics/Graphics Support - by Jawsarn - 17-05-2026, 12:02 PM
RE: ECS Physics/Graphics Support - by josemendez - 20-05-2026, 02:00 PM
RE: ECS Physics/Graphics Support - by Jawsarn - 18-08-2026, 10:13 AM
RE: ECS Physics/Graphics Support - by josemendez - 22-08-2026, 10:26 AM