I’m currently involved in a humble project which includes a space element (and by includes I mean it’s a major part of the game.) My partner in crime assures me that he can create a script for space flight, but it’s been nearly two weeks and he thinks that minecraft is a better use of his time. I was wondering if there was any tutorials for 3 dimensional space flight (none of this side scrolling blasphemy) that would be easy enough a caveman could do it.
i think you should ask a caveman for that. only they can tell you what is easy enough for them.
You mean like the sort I use in Danger Flight? (Link in signature) That’s always dependent on whether you want an absolute speed model or an acceleration to absolute speed model. In one, you just move your current speed up and down as a script variable and set your velocity to
rigidbody.velocity = transform.forward * curSpeed;
In the other, you accelerate by going
rigidbody.velocity += transform.forward * accelSpeed * Time.deltaTime;
and then check to make sure it never goes over your curSpeed value.
if (rigidbody.velocity.magnitude > curSpeed) {
rigidbody.velocity = rigidbody.velocity.normalized * curSpeed;
}
I’ve seen that game before, I believe it popped up when I used google. This was helpful, Its a start, perhaps now I can kick that slacker into gear.