I have modeled an airplane and when it reaches a certain velocity I would like to set a HasTakenOff
boolean from False to True. One approach is to put a branch on the tick to evaluate the airplane velocity then update the boolean when the velocity crosses a threshold. However, this seems inefficient because the branch will continue to be evaluated every tick, even after the boolean has been set to True.
Is there a more efficient way to handle this process? Specifically I’m wondering if there’s a way to take the branch off the tick loop after the boolean has been updated. Or, maybe the actual cost to performance is minimal and I should not worry about it.