I have been looking out by the Unity docs (https://docs.unity3d.com/ScriptReference/Physics.Raycast.html), however irrespective of the place I look, I could not discover actual behaviour of Physics.Raycast() methodology.
I’ve seen loads of youtube movies utilizing Physics.Raycast inside Replace loop , so I began questioning behaviour of Physics.Raycast() methodology. (I found this imprecise unwritten rule: “In case you use raycasts to ping objects it is okay to place it inside Replace loop”, identical factor with Rigidbody.AddForce(x,y,z, ForceMode.Impulse) – apparently it is high quality to make use of it inside Replace)
So my query is: if I name Physics.Raycast() inside Replace() does it execute instantly or does it get queued for execution on the following FixedUpdate body? (documentation is lacking rationalization for this)
If it is the latter, how can I do know which Physics strategies get queued for the following FixedUpdate , and which occur immediately?