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 user-10911 (yahoo) · Mar 30, 2011 at 06:09 AM · spawningcube

cube spawn next to another cube in the same row

how would i spawn a cube next to another cube in a row? for example i spawn a cube point my crosshair on that cube i just spawned and spawned another one and that new cube goes right beside it how would i do that?

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Jesse Anders · Mar 30, 2011 at 06:35 AM

I think this might be a duplicate question (not sure), but I'll try to provide an answer that (I hope) will provide the needed info.

What you're asking about doesn't really have an easy, short answer. It's also kind of a broad question, at least for UA. As I've stated in response to other threads, open-ended 'how-to' questions often fair better in the forums (IMO), where it's easier to post follow-up questions and responses and continue the discussion until a solution is arrived at. If you find you aren't getting the answers you need here, you might try the forums instead. Also, try searching UA and the forums for 'minecraft', as this topic has been discussed extensively.

As for your question, the very first thing you'll need to do is define the desired behavior in detail. In particular, you need to decide how the interface will work. For any cell there are six neighbor cells (generally speaking - some of them may already be occupied of course), so firstly you need to decide which of these neighbor cells should become occupied when you click on an occupied cell. More generally, you might try some of the various 'block building' games and demos out there and see how the interfaces work (I think most of them incorporate some sort of 'intelligent' interface that makes a reasoned guess as to what cell the player if targeting).

Beyond that, the whole 'cube world' thing can range from very simple (a 3-d array, if the world is small enough for that to be practical) to more or less arbitrarily complex (various data structures and spatial organization techniques leveraged to facilitate large worlds, batching for efficient rendering, etc.). If you're a beginner however, I'd recommend starting with the simplest possible implementation, which would probably be a simple 3-d array, and then work from there.

That, I think, is your starting point. If that doesn't give you enough to go on, then you need to refine your questions and make them more specific. You can follow up here, or try posting to the forums as previously suggested.

Hope that helps.

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 AngryOldMan · Mar 31, 2011 at 04:25 AM 1
Share

yeah it's a duplicate. He has used 3 different accounts now to ask the same question and not paid attention to any answer, just keeps asking for script.

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 can i destroy cubes that is randomly generated when i have passed them? 1 Answer

How to make an object spawn in different positions? 2 Answers

Spawning won't work 1 Answer

Spawning Cube on empty gameobject 1 Answer

Need Help Spawning Cubes Constantly In Front Of Player 1 Answer


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