Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Realistic flight in 2D

$
0
0
Hello, I m trying to make a realistic bird flight in 2D.

Here is my code:

Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class PlayerMove : MonoBehaviour {
  5.  
  6.     public Vector2 speed = new Vector2(5, 3);
  7.     private Vector2 movement;
  8.  
  9.     public CNAbstractController joystick;
  10.  
  11.     // Use this for initialization
  12.     void Start () {;
  13.  
  14.     }
  15.  
  16.     // Update is called once per frame
  17.     void Update () {
  18.         float inputX = joystick.GetAxis("Horizontal");
  19.         float...
Realistic flight in 2D

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>