Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

2D Space Game Help with Gravity and Velocity

Discussion in '2D' started by Fendyk, Jul 17, 2017.

  1. Fendyk

    Fendyk

    Joined:
    May 12, 2017
    Posts:
    4
    Hi there, I am creating a simple game in 'space'. I've a couple issues with gravity.

    I have a spacecraft and you can control it with WASD or the arrow buttons. I know gravity doesn't exists in space, but is there a way when you click at W (forward) for example and release it, the spaceship smoothly slows down until it completely stops?

    I would like to know how I can achieve this. Thanks!
     
  2. guillermoi

    guillermoi

    Joined:
    Sep 20, 2012
    Posts:
    27
    Fendyk likes this.