onFixedUpdate
Why ?
When ?
KapEngine::KEngine engine; //here we create a new Game
KapEngine::Time::ETime newFixedTime; //here we create new Time variable
newFixedTime.setSeconds(1.f); //here we set time variable to 1 seconds
engine.setFixedTime(newFixedTime); //here we set the fixedTime to 1 second.
//this code means that all onFixedTime gonna be call each seconds.Prototype
//hpp
void onFixedUpdate() override;
//cpp
void KapEngine::MyGame::MyComponent::onFixedUpdate() {
//do what you want
}Last updated