Hi guys, I new around here and would like some help or advice ! I usually don't like to seek help from other people but I'm desperate and out of ideias. I'm pretty much an amateur in programing and usally what I know came from a youtube tutorial.
Recently a got I job in a company to develop some games using LeapMotion. I already made one of those but the other ones are really annoying to do. And the tutorials out there about LeapMotion are really old and few to help me.
Right now I'm stuck with a preatty simple 3D airplane game. The objective is to pass some circles in the sky while controling the plane with your hand. The problem is I can't find anywhere tutorials or intructions about how to control the plane proprely. I already tried to do at my own but it dind't work. Every other aspect in the game I can do just fine with the tutorials.
Here's the code of the Plane if you wanna read it:
`using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
public float speed = 5;
public Rigidbody rb;
float horizontalInput;
float verticalInput;
public float horizontalMultiplier = 2;
public float verticalMultiplier = -2;
private void FixedUpdate()
{
Vector3 fowardMove = transform.forward * speed * Time.fixedDeltaTime;
Vector3 horizontalMove = transform.right * horizontalInput * speed * Time.fixedDeltaTime * horizontalMultiplier;
Vector3 verticalMove = transform.up * verticalInput * speed * Time.fixedDeltaTime * verticalMultiplier;
rb.MovePosition(rb.position + fowardMove + horizontalMove + verticalMove);
}
private void Update()
{
horizontalInput = Input.GetAxis("Horizontal");
verticalInput = Input.GetAxis("Vertical");
}
}`
It is important to note that I'm not using UltraLeap but a much older version of it (4.0.0 to be precise). My boss will provide me a stronger machine for UltraLeap in a few weeks. But I don't want to get stuck doing nothing. I already have the Unity Modules 4.6.0 dowloaded too. Anyone can help me solve this problem ?