Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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
1
Question by Rekyem · Feb 24, 2016 at 05:35 PM · mathgridgeometryhexagonspherical

Hexagonal geodesic map

Hello,

I don't find on the web the mathematic formule or routine for know the hexagones 3d position and rotation for this type of grid (is an icosahedron dual ?) : alt text

My 0;0;0 position would be the center of the map, and i would like choose the size between 2 pentagons (If I understood correctly, there are always 12 pentagons), like that : alt text

I specify, I have an hexagon mesh, and I doesn't want the method for build the mesh of the grid (On the web, I found only this type of solution). I want to know only the position and rotation of one of the hexagone, with a id.

Schematic example of what I want :

 #define PENTAGONS_NUMBER 12
 
 buildMap(10);
 
 void buildMap(int _size)
 {
    int numberHexagons = computeNumberOfHexagons(_size);
 
    for(int i = 0; i < numberHexagons; i++)
    {
       GameObject go = Instantiate(prefabHexagon, getHexagonPosition(i), getHexagonRotation(i)) as GameObject;
    }
 }


So, can you help me for find (or if you know, give) the routine/formule/explanation for the shematics functions computeNumberOfHexagons(), getHexagonPosition() and getHexagonRotation() ?

Thanking you ! :)

goldberg-polyhedron-10-0.png (21.0 kB)
goldberg-polyhedron-10-1.png (19.1 kB)
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 leostaley · May 12, 2018 at 03:30 AM 0
Share

Did you ever figure this out? I myself have an idea for a game on a goldberg polyhedron.

0 Replies

· Add your reply
  • Sort: 

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

50 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 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 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

i have a line that goes through a circle. how can i find intersection points? 1 Answer

How do I space out UI elements evenly in a horizontal layout group? 1 Answer

Circle-line Intersection Points 3 Answers

Hexagon grid check for specific tile 0 Answers

Find "real" rotation of box mesh 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