Slow Motion Effect - Unity Game Development Tutorial
In this Unity game development tutorial we're going to look at how we can create a slow motion or bullet time effect in our game. You can either watch the video version below or continue reading for written instructions. We're going to start with the project we created in our Colliding with Obstacles Tutorial. We've got a ball and a stack of boxes that all have a Rigidbody component attached so that they react to forces and collisions. We then have the following simple script attached to the ball that applies a force when the arrow keys are pressed. using UnityEngine; public class BallMovement : MonoBehaviour { public float forceSize; private Vector3 forceDirection; private Rigidbody rigidbody; void Start() { rigidbody = GetComponent< Rigidbody >(); } void Update() { float horizontalInput = Input .GetAxis( "Horizontal" ); float verticalInput = Input .GetAxis( "...