Unity: Visual effects should be updated once per rendered frame (Update), but physics should be updated at a fixed rate (FixedUpdate), so the speed of the machine doesn't affect the speed of the game.
Also Unity: Collisions are detected per frame.
(Is this accurate?)
#unity #unity3d #GameDev
@peterdrake No, to the best of my knowledge, collisions are detected during the FixedUpdate cycle.
@LouisIngenthron So the reference to "once per frame" here means once per "physics frame"?
https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnCollisionStay.html
@peterdrake @LouisIngenthron It means once per FixedUpdate, i.e. every Time.fixedDeltaTime. See this handy diagram:
https://docs.unity3d.com/Manual/ExecutionOrder.html
QOTO: Question Others to Teach Ourselves An inclusive, Academic Freedom, instance All cultures welcome. Hate speech and harassment strictly forbidden.
@peterdrake @LouisIngenthron It means once per FixedUpdate, i.e. every Time.fixedDeltaTime. See this handy diagram:
https://docs.unity3d.com/Manual/ExecutionOrder.html