Project on itch.io............NOT WORKING! :(
Early compiled HTML 5 version, now, searching host to upload a poor playable prototype.
Searching to establish a correct scale for the elements of the project.
using UnityEngine; | |
using System.Collections; | |
public class HoverMotor : MonoBehaviour { | |
public float speed = 90f; | |
public float turnSpeed = 5f; | |
public float hoverForce = 65f; | |
public float hoverHeight = 3.5f; | |
private float powerInput; | |
private float turnInput; | |
private Rigidbody carRigidbody; | |
void Awake () | |
{ | |
carRigidbody = GetComponent <Rigidbody>(); | |
} | |
void Update () | |
{ | |
powerInput = Input.GetAxis ("Vertical"); | |
turnInput = Input.GetAxis ("Horizontal"); | |
} | |
void FixedUpdate() | |
{ | |
Ray ray = new Ray (transform.position, -transform.up); | |
RaycastHit hit; | |
if (Physics.Raycast(ray, out hit, hoverHeight)) | |
{ | |
float proportionalHeight = (hoverHeight - hit.distance) / hoverHeight; | |
Vector3 appliedHoverForce = Vector3.up * proportionalHeight * hoverForce; | |
carRigidbody.AddForce(appliedHoverForce, ForceMode.Acceleration); | |
} | |
carRigidbody.AddRelativeForce(0f, 0f, powerInput * speed); | |
carRigidbody.AddRelativeTorque(0f, turnInput * turnSpeed, 0f); | |
} | |
} |
Searching tools as scripts related with specific behaviours as orbital movement around an object, vehicles featuring movements and more.
Obs:. The scripts will be changed according our needs, rules of the ethics and the main creators can be mentioned.
Project Defined:
Me and my team, that, isn't doing nothing, defined the project would be a kind of game, using the Moon Trek and of course, Mars Trek searching bring informations about the entities by a fun way with missions related with knowledge about it allowing the people can learn trough a ludic way.
Trying to establish integration at least with Moon Trek searching to introduce at least on 3D model on the web based tool.
Difficulties: Perfect web development knowledge.
SpaceApps is a NASA incubator innovation program.