Does unity’s physics get updated after each scripts FixedUpdate? or does it only update after every scripts FixedUpdate is complete?
e.g) I have a script that runs code in fixedupdate that moves the player using physics and another script on another object that is set to run afterwards(order of execution settings) that also has code in fixedupdate to draw a ray between itself and the player. Would the player move and then the ray would update with its new position? or would both fixedupdates in the different scripts run before the internal physics moves the player?
I am aware of the physics updating after fixedupdate. However I am wondering if that’s on a per script basis or it only updates after all other fixedupdates in other scripts have ran?.
As far as I am aware all physics will be updated after all scripts have been executed. That makes the most sense as some physics depend on other physics to work properly (for example an object falling against another object).