Click or drag to resize

IPartModuleOnFixedUpdate Method

Notifies about a physics frame update.

Namespace:  KSPDev.KSPInterfaces
Assembly:  KSPDev_Utils.2.0 (in KSPDev_Utils.2.0.dll) Version: 2.0 for KSP v1.8+
Syntax
C#
void OnFixedUpdate()
Request Example View Source
Remarks
Physics in Unity is updated every 20ms which gives 50 calls per a second. Be extremly careful about placing functionality into this callback. All fixed updates are required to complete, so if 50 updates take longer than one second then the game's speed will degrade.

In general, don't even override this callback unless it's absolutely required.

See Also