Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Porcelain · Apr 12, 2011 at 01:24 PM · mouselookwasdconstantforcehelicopterlift

Sci-Fi Assault Craft

Heya, Currently I am trying to piece together a controller script for a Sci-Fi Assault Craft. It is composed of a Hull and 4 Jet Engines attached via Hinge Joints. So far it is able to move stably using constant forces that I have applied to each jet. But because of my lack of scripting knowledge I cannot get it to move how I wish to.

What I need is a script that:

  • Has Rotational Speed, Maximum Yaw (side to side rotation) and Selectable Axis of Yaw (X,Y,Z) bound to the the Left (A) and Right (D) keys. Plus will reset the objects rotation to its original Vertical position.
  • Has the Up (W) and Down (S) keys bound to the Constant Force being applied to each of the jet engines (This would be great if it had 5 undefined targets that then would link onto the constant force variable for each of these individual targets).
  • Has a Mouse Look function: This would need to allow for rotation around the Objects X Axis when the Mouse moves along its Y Axis (and also have a variables for speed and dampening). When the Mouse moves along its X Axis the Object would then need to rotate around its Y Axis (and also have a variables for speed and dampening).
  • And last but not least has the Mouse Scroll Wheel and Keyboard numbers 1-9 bound to scroll through 9 different combinations of triggers which can be activated by the Left Mouse Button and Right Mouse Button.

I know it's alot to query about but so far I'v had no luck in finding references regarding compound controller scripts or how I can get these scripts to work together...

Please Help :) :P -P.Child

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Justin Warner · Apr 12, 2011 at 03:19 PM

http://tinyurl.com/6agonle

OR

http://tinyurl.com/6ftfhfh

Depending what you perfer...

Then you can check out:

http://tinyurl.com/3fwgay5

But in all seriousness... You really should learn before you ask to have people do your script for you... Just a suggestion... But if someone here does want to write you a script, what a nice man/woman =). But I certainly wont ;). Now, if you post script that you've attempted to write (Not find online), then sure, I'll spend some time going over it =).

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Porcelain · Apr 13, 2011 at 04:30 AM

Cheers man, I do have a small base in coding but mainly with javascript. And no i'm not looking for someone to write me a script :P Just some helpful pointers... like I cant seem to apply mouse and key control scripts separately on one object and if I do it in one script it wont run without a character controller which grounds the object.. hmmmmmmmm

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

How to make a rigidbody hover giving it an upward force? Mine still doesn't stay even when the upward force and graviational pull are equal. 3 Answers

Need help with WASD plus mouselook movement,,Need help with WASD movement 0 Answers

How to make a helicopter speed gauge? 0 Answers

Helicopter controls inverted 1 Answer

Moving Up, Down, Left and Right via Wasd and the arrow btns?? in 2d 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges