A small problem with unity physics optimization

Source: Internet
Author: User

For performance optimization, Unity calculates all the volumes in the scene, including the Static collider and
This information exists in "Cash", and for stationary objects, with this information, there is no need
Again every frame is recalculated. If a static object is moved, stretched, or rotated, it is
The static collider is operated accordingly, Unity will recalculate the still collider again and
Times to "Cash". Recalculating "Cash" consumes resources. Dynamic objects can be arbitrarily
Move, stretch and rotate, while unity does not re-upload any collision volume into "Cash".
In unity, we move the collider, and we just need to tell unity which objects are dynamic
。 Can be defined by the "rigidbody" component, any group containing "Rigidbody"
Objects will be treated as dynamic objects. Conversely, it is a static object.

Note: This article excerpt from video "Unity Official example Tutorial Roll-a-ball", video resources from the game Bull net

A small problem with unity physics optimization

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.