Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

marshallllahsram

Weird Space Ship Controller!

Recommended Posts

WARNING: THIS MAY BE FAIRLY USELESS!!!

 

So, I made this controller for a space ship. It's almost like half helicopter control, half plane. You pretty much have to rotate the object in the way you want it to go and press space to go forward! Anyway, here is the script. Just put this on a game object with a rigid body and place the game object in the "spaceShip" variable. Disable the use gravity box on the rigid body and your ready to go! You might want to play around with it to get the feel of the "unique" controls :P.

Please login or register to see this code.

P.S. This is my first script that I've ever posted on here. My goal was to make a really weird way to control a game object, and I think I achieved it :P. Please leave feedback!  :)

Edited by marshallllahsram

Share this post


Link to post
Share on other sites

Maybe for a smoother rotation you could've used AddTorque();

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×