Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用 isSleeping 优化 DynamicCollider 的位置回调 #2142

Open
cptbtptpbcptdtptp opened this issue Jun 27, 2024 · 1 comment
Open

使用 isSleeping 优化 DynamicCollider 的位置回调 #2142

cptbtptpbcptdtptp opened this issue Jun 27, 2024 · 1 comment
Assignees

Comments

@cptbtptpbcptdtptp
Copy link
Collaborator

image
DynamicCollider 每帧的 lateUpdate 都必定会回调更新 entity 的 transform ,通过结合 isSleeping 可以减少很多不必要的更新。

@cptbtptpbcptdtptp
Copy link
Collaborator Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants