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 maxus · Apr 04, 2014 at 09:23 AM · topdownbuildings

Multi story buildings in top down game using 3d engine

I am creating a top down game with the 3d physics engine and want to implement multi story buildings. Different buildings can be on different Y axis levels because the ground will be uneven terrain. The camera will be a fixed distance on the Y axis from the player. The camera needs to be able to see the player character, and everything on the player's current floor. I plan to use stair cases to traverse the different floors.

Is there any best practice or packages that can help to achieve this?

Comment
Add comment · Show 2
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 ShadoX · Apr 04, 2014 at 09:25 AM 0
Share

sounds fine to me as long as each floor is a separate object

avatar image GEWLAR · Apr 08, 2014 at 02:40 PM 0
Share

You just have to make all other parts, of the building which are between the camera and your player, invisible. Then your idea should work.

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by maxus · Apr 08, 2014 at 02:57 PM

Here is how I implemented it in the end. For each building game object, here is how the hierarchy should be organised:

Building

  • Ground Floor

  • Walls

  • Floor

  • First Floor

  • Walls

  • Floor

  • By default, only the ground floor would be visible and the renderers of the game objects in all other floors would be disabled. I then have trigger points in the bottom and top halves of the stair cases, that hide and reveal the previous or next floors when they are triggered by the player.

    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 Benson97 · Jun 08, 2018 at 08:10 AM

    @maxus Hi, I am new to unity and I am developing a similar game like you did, a top down 3d game which is like if player go inside a building the floors above him will disappear. However now I am having a hard time about how to do it through script or other method, I can't find any tutorial or forum talking about it, but looks like you did it. Can you give me some direction about to make it? I doesn't really understand what you said in your method.

    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

    22 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

    Related Questions

    Top Down Style Player Position Wrapping 1 Answer

    Instantiating a prefab/bullet and sending it to my mouse position?? 0 Answers

    2D Rotation for aiming problem 1 Answer

    (noob) Weapons in 2D game? 1 Answer

    C# LookAt Mouse 2D 2 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