Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by burzum793 · Jun 03, 2016 at 06:33 PM · physicsspaceshipthrust

Semi-realistic space flight model using multiple thrusters

This is less a coding issue than more a conceptual question to the following problem.

I've created a thruster script that works well and applies force on a ships "hull" depending on where it is placed. So I put 4 on top, bottom, 2 on each side. Each thruster can be disabled (get damaged, shot). The thrusters are fired based on the inputs to rotate, pitch, strafe the ship.

So my problem is now that I have to place them exactly on the right spots of the ships hull to get it strafe down / up or even just forward correctly. For example if the rear / main thruster is not place correctly, the ship is going to fly not in a straight path forward but moves it's nose up and "flips over".

Any idea how I can get the "simulated" thrusters and have them behave the way I want without the need to place them 100% accurate? This would become even more funny with attached rockets or other gear to the ship that would alter the mass and center of gravity.

Comment
Add comment · Show 1
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 Eno-Khaon · Jun 04, 2016 at 01:13 AM 0
Share

I'm afraid I don't have a concrete answer to offer, but I would recommend looking into Quad-copter stabilization methods.

When you know a maximum acceleration at several points, you'll be able to push forward with an optimal distribution of force.

Unfortunately, I haven't tried implementing it myself yet, and it's not something easily handled by pure guesswork, or I'd offer more than a suggestion of where to look.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by trevorchico · Jun 04, 2016 at 03:53 PM

Thats rough! sounds like a problem I had in calculus class or something.

You could try adjusting the thrust on rocket based on the nose cone x and z position? I feel like thats how NASA would do it?

If (positition.x < startposition.x) Thrustpower++.

That would take a lot of testing and trial and error as well though...

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 3ddave · Jun 04, 2016 at 04:14 PM

The simplest method that would maintain realistic physics would be to designate some type of grid or snap point that the thruster is attached to. Divide the hull into some integer number of positions. For example, a 10 unit wide hull might have a thrust point every 1 unit. Do the same for height. This would yield a grid of points. By using a discrete range of points instead of a continuous range it should be much easier to align parts to symmetric locations. Adjusting the granularity of your grid will make it easier/harder to get correct alignment.

It may be the case that you don't want an actual "snap to" feel for the user. If that is the case, then you can make the grid points "virtual." When the user selects a position to place the thruster, visually place the thruster at that location but computationally store the nearest grid point to that position and use that for your calculations. Hope that makes sense, let me know if it was unclear.

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

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Boost effect on KeyPress. 0 Answers

wing suit physics 1 Answer

Making a rigidbody "immune" to reacting with another specific rigidbody? 0 Answers

Why Does Bounciness Affects Rigidbody Velocity? (SOLVED) 0 Answers

Idea to know how to give realistic movements to a spaceship ( A sort of delay ) 0 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