Artwork

内容由HackerNoon提供。所有播客内容(包括剧集、图形和播客描述)均由 HackerNoon 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal
Player FM -播客应用
使用Player FM应用程序离线!

How to Optimize Work With Collisions in Unity

2:28
 
分享
 

Manage episode 429354844 series 3474369
内容由HackerNoon提供。所有播客内容(包括剧集、图形和播客描述)均由 HackerNoon 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal

This story was originally published on HackerNoon at: https://hackernoon.com/how-to-optimize-work-with-collisions-in-unity.
Hello everyone, I would like to share a solution that, for some reason, I have not seen anywhere before, but it does a good job of optimizing the work
Check more stories related to gaming at: https://hackernoon.com/c/gaming. You can also check exclusive content about #unity, #physics, #optimization, #game-development, #collisions-in-unity, #optimize-work-in-unity, #unity-guide, #gaming-development, and more.
This story was written by: @doomowenok. Learn more about this writer by checking @doomowenok's about page, and for more stories, please visit hackernoon.com.
The solution is to cache the components that we want to take in case of a collision. To do this, we create an object that will participate in a constant collision, register it by ID, and we will take the ID from the collider using **GetInstanceID. This is what our code for this service will look like.

  continue reading

135集单集

Artwork
icon分享
 
Manage episode 429354844 series 3474369
内容由HackerNoon提供。所有播客内容(包括剧集、图形和播客描述)均由 HackerNoon 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal

This story was originally published on HackerNoon at: https://hackernoon.com/how-to-optimize-work-with-collisions-in-unity.
Hello everyone, I would like to share a solution that, for some reason, I have not seen anywhere before, but it does a good job of optimizing the work
Check more stories related to gaming at: https://hackernoon.com/c/gaming. You can also check exclusive content about #unity, #physics, #optimization, #game-development, #collisions-in-unity, #optimize-work-in-unity, #unity-guide, #gaming-development, and more.
This story was written by: @doomowenok. Learn more about this writer by checking @doomowenok's about page, and for more stories, please visit hackernoon.com.
The solution is to cache the components that we want to take in case of a collision. To do this, we create an object that will participate in a constant collision, register it by ID, and we will take the ID from the collider using **GetInstanceID. This is what our code for this service will look like.

  continue reading

135集单集

所有剧集

×
 
Loading …

欢迎使用Player FM

Player FM正在网上搜索高质量的播客,以便您现在享受。它是最好的播客应用程序,适用于安卓、iPhone和网络。注册以跨设备同步订阅。

 

快速参考指南

边探索边听这个节目
播放