MonoBehaviour.FixedUpdatefunction FixedUpdate () : voidDescriptionThis function is called every fixed framerate frame, if the MonoBehaviour is enabled. FixedUpdate should be used instead of Update when dealing with Rigidbody. For example when adding a force to a rigidbody, you have to apply the force every fixed frame inside FixedUpdate instead of every frame inside Update.
JavaScript
// Apply a upwards force to the rigid body every frame using UnityEngine; import UnityEngine |
