Description
The OnComponentFixedUpdate
property is an event handler that allows you to define custom behavior for a component during the fixed update phase of the game loop. This phase is typically used for physics calculations and other time-sensitive operations that need to be consistent regardless of frame rate.
Usage
To use the OnComponentFixedUpdate
property, assign a method to it that you want to be called during the fixed update phase. This method should contain the logic you want to execute at each fixed update interval.
Example
// Example of using OnComponentFixedUpdate
public class MyComponent : Component
{
public MyComponent()
{
OnComponentFixedUpdate += MyFixedUpdateMethod;
}
private void MyFixedUpdateMethod()
{
// Your fixed update logic here
// For example, applying physics forces
}
}