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 Cesiken · Oct 31, 2012 at 09:31 PM · spacelimitfloating

Unity3d floating limits?

Hi there, Guys. I have a problem with Unity3d's floating limits. I'm making a realistic Space game, And therefore, I need alot of space. The planets are both big, and very far from each other. But my problem is: 1: I can't zoom enough up, Since everything is very big 2: There are those floating limits, And I can't click F to get to the planet quickly. Is there any way to modify the limits?

Thank you for reading.

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

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Eric5h5 · Oct 31, 2012 at 09:35 PM

You can't modify the limits. This has already been discussed a lot; do a search for "Unity space game scale" or similar.

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 Jessespike · Oct 31, 2012 at 09:51 PM

You can't just modify the range of a 32bit float. Unity has nothing to do with the sizes of floats, as they are hardware dependent. As for realism in your scene, there's no point. You'll run into problems like you have here. You should decide a reasonable scale for your scene. If you need huge voids of empty space, then perhaps it can be programmed in, instead of trying to make a 1:1 scale of the universe. You can make it so the scene has invisible walls, and when the player hits the wall/collider, then planets/stars will move towards the player. This will keep the player in reasonable float ranges and it's in space so the illusion of you approaching planets will be the same when they are actually approaching you. My point is, you can't change float range so you'll have to rethink the design of your scene.

Comment
Add comment · Show 1 · 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 Cesiken · Oct 31, 2012 at 10:34 PM 0
Share

Well, I want to do it a way like, For example, the game $$anonymous$$erbal Space Program did. It was made with Unity and the solar system is a massive size. But I do not know how they did it.

avatar image
0

Answer by JaredThomson · Dec 23, 2013 at 08:53 PM

You're trying:

base position (0,0,0) ----------------------------------------------------> far distance (out of float range)

Instead try:

base position (0,0,0) --- edge of chunk 1

edge of chunk 1 (new 0,0,0) --- edge of chunk 2

edge of chunk 2 (new 0,0,0) --- edge of chunk 3

There then is a new problem of how to store and refer to your new positions. You will probably have some sort of 3D index into all chunk data so your co-ords will become something like (i,j,k,x,y,z) where ijk are chunk indices which you can later translate on a hud to the user by converting those values to some BigInt system that can support values larger than 64 bits.

In short:

It's not going to be easy and it does cost more memory. You can reduce the memory using octrees or something like that where large empty spaces can be easily stored in a small amount of data. The theory is quite simple but if you're not an experienced developer I suggest trying something smaller scale until this sort of concept begins to be so obvious you don't need to ask about it. No insult intended, it's worth a shot if you feel you can tackle it. Good luck!

Comment
Add comment · Show 2 · 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 flaviusxvii · Dec 23, 2013 at 09:04 PM 0
Share

You do realize this question is over a year old right?

avatar image JaredThomson · Dec 24, 2013 at 01:34 AM 0
Share

Yup. It was poorly answered to this point, hopefully someone who's looking to accomplish something similar will find it helpful.

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

13 People are following this question.

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

Related Questions

Multiple Cars not working 1 Answer

Can unity handle this city (it's multiple meshes)? 1 Answer

A node in a childnode? 1 Answer

I need help with my Door Switch Configuration. 1 Answer

Parent Object Via Code C# 3 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