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 sagaz · Apr 05, 2012 at 05:11 PM · dynamicplacementprops

Dynamicaly scenario placement

Hi there!

I´m developing a game in which the ground is done by blocks of fixed size (20x1x40). There's always 4 blocks available in the scene: the actual, the next 2, the last one and, when the player reaches the end of the actual block, a new one is created (and the oldest is destroyed, remaining 4). Until here, everything works fine.

The point is that I have a list of scenario props of different kinds and sizes, and I want to, everytime a new block is created, some of those props is created on the top of it. A system that picks a random object, make a placement test (to avoid touching others), and put it correctly (with maybe 1 extra unit spacing on each axis, for safety). A var deals with how many should be created on each block, as the amount changes over time.

It seems easy to do, but in the end, all my tests went wrong. In one them, I tried using an object to "scan" the area before placing, but it didn't worked as well. The problem is that I need a fast solution, as the player is always moving forward and, if it takes longer to do, the prop placement will become visible, which I don't want to.

Does anyone can help me with this? Almost everything is done in the game to end sandboxing, that's the only missing thing yet. As I'm a game designer (doing everything by myself), I don't have such a pro knowledge of programming to solve this alone. Thanks!

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

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Dynamic placement of AI 1 Answer

Lightmapped terrain no shadow from dynamic objects 0 Answers

Error trying to use ExpandoObject in Unity 2018.1 2 Answers

How to build a tilemap at runtime? 1 Answer

How to Massplace Assets with Script at Edittime 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