• 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
1
Question by langem · Jan 08, 2014 at 01:07 PM · physicsloadinglevelculling

Does Unity also cull physic objects?

Hi everybody,

I need some help with my new game. It's a 2.5D sidescrolling racing game. The ground consists of several segments and has some physics obstacals and decoration on it. At the moment I'm loading everything at the beginning of the level and don't do any culling myself.

Here's a sketch of the situation:

alt text

Now my questions:

  • Does Unity 3d all the culling?

  • Does Unity culling also affect physics objects? Meaning are they switched off when they are not visible?

  • Is there a big overhead of the objects (segments) not visible?

  • Should I do some culling by myself?

  • What would be the best practice here? Dynamically loading and unloading the segments, or just putting all segments to the scene at the beginning of the level?

Any help would be really appreciated.

Thanks and best regards, Matthias

scene.jpg (30.4 kB)
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
4
Best Answer

Answer by GameVortex · Jan 08, 2014 at 01:23 PM

Culling is only for visibility, meaning that the camera will not use resources to display culled objects. Without doing anything Unity will automatically cull objects that are outside of the camera view frustum.

Culling do not affect physics objects, physics will continue to be calculated on all objects outside of view. Though if nothing happens to physics objects for a while, physics will stop being calculated on them (they go to sleep) and only a change in collision will wake them up.

There is usually not a big overhead on objects that are not visible, but it really depends on the objects. Big objects take up more memory and physics objects still gets physics calculations and so on.

You could do some **Occlusion Culling** which will cull objects that are behind other objects but still inside the cameras view frustum. This is a Unity Pro feature though and with a 2.5D game like your I don't think it is really necessary to use Occlusion Culling.

There is no best practice when it comes to such things, it all depends on your specific game an target platform. If the level has a large number of segments and it takes a lot of time to load it up on your target platform, or it even takes to much memory, it could then benefit from dynamically loading and unloading the segments. Again it all depends on your game and platform.

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 langem · Jan 08, 2014 at 01:49 PM 0
Share

Thanks GameVortex, that makes it clearer to me.

avatar image GameVortex · Jan 08, 2014 at 01:57 PM 0
Share

No problem, glad I could help. =) Remember to mark the question as answered.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

19 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

Related Questions

Application.LoadedLevelName for level loaded from asset bundle isn't set 1 Answer

Game crashes or does not load levels when told to? 2 Answers

LoadSceneMode.Single seems to be not working. 0 Answers

How would I go about making an open world game? 1 Answer

Loadlevelasync - Application Hangs 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