# Basic questions for moon landing game

Hello,

I have decided to make a moon landing game for my school project. Our school is using C# for scripting.

I am really lost at this point since this is my first ever game I am developing. I also think I have decided to make too complicated game. (I have pretty good understanding of physics… (When it comes to thrust, I may have problems…))

This is all the scrip I have applied for now:

``````using UnityEngine;
using System.Collections;

public class MoonPhysics : MonoBehaviour {

void Start () {

}

void Update () {

float thrust = Input.GetAxis("Vertical") * 10f;

float rot = Input.GetAxis("Horizontal") * 10f;

}
}
``````

I have 5 questions.

1. Have I chosen too difficult game? (I have about 5 weeks to develop this game)
2. I have created terrain and I have no textures… what is going on? (Using free Unity version)
3. How would I make the camera to track the TestShip (simple triangle acting as lunar module)
4. Is physics for rocket thrust complicated to script and apply to a module? Or should I just stick to built in physics functions and use ‘force’?
5. I would like to be able to see altitude, speed and angular velocity etc… how would I do that?

Thank you

I did a similar project with my daughter. What we did was pretty basic…a straight down landing with limited fuel and a velocity goal for a safe landing. Use too much fuel, and the module freefalls to it’s death…too little and you hit too hard. We bypassed Unity’s physics engine and used equations instead (for educational value). Day/hour one we developed a bounding ball using the equation. The actual lander project took an addition four days/hours to complete including the graphics time. But that is with me knowing the end goal, guiding, and helping her through the rough spots. She displayed altitude, fuel, velocity and acceleration.

The equation we used is:

Here is the key code she wrote based on that equation (executed in Update()):

``````float fDeltaY = fVelocity * Time.deltaTime + fAccl * Time.deltaTime * Time.deltaTime / 2.0f;
float fDeltaV = fAccl * Time.deltaTime;
v3Point.y = v3Point.y + fDeltaY;
fVelocity = fVelocity + fDeltaV;
transform.position = v3Point;
``````

Rather than have the camera track the module (third person), she used the camera as the module looking down. Here is a screen shot from the game view.