Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  4. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

big gravity problem/center of mass?

Discussion in '2D' started by daboiy2018, Apr 16, 2018.

  1. daboiy2018

    daboiy2018

    Joined:
    Apr 5, 2018
    Posts:
    3
    So I'm trying once again,

    I have some problems with my game. It's a kinda Flappy bird like game and everything is going well, except for one thing. I have asked already a few times for help on this threads but I never got a SATISFYING answer.

    I'm a beginner so don't think I'm noob

    My bird, let's name him jeff, is flapping and flying like he has to do but he doesn't fly really realistic. I want to let jeff fall on his beak so that he is looking all the way where he is falling. and then, when he flies up, he has to look where he is flying up, got it?

    I have no idea how to script this. Please help me
    Thank you in forward
     
  2. N_Murray

    N_Murray

    Joined:
    Apr 1, 2015
    Posts:
    49
    Hi, depending on how you are making the bird fly there could be a different answers to your question. If you are using physics you could test your velocity and see if it is going up or down and then rotate the bird accordingly.