Force execute every frame in FixedUpdate?

Let’s say I have the following:

function FixedUpdate () {

		if (Input.GetAxis ("Pitch") == 1.0) {
			pushTimer += Time.deltaTime;
			rigidbody.AddRelativeForce (-Vector3.up*200);	// Applies Forward force to the bike
		}
}

Is it possible to force “pushTimer += Time.deltaTime;” to run every frame while inside FixedUpdate, or do I HAVE to us Update for that?

Your code is perfectly fine. Time.deltaTime means Time.fixedDeltaTime when it’s in FixedUpdate.

Ah! That’s a first :slight_smile:
Thanks!