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

3d场景物体拾取如何实现? #45

Open
zs-soft opened this issue Jan 26, 2019 · 1 comment
Open

3d场景物体拾取如何实现? #45

zs-soft opened this issue Jan 26, 2019 · 1 comment

Comments

@zs-soft
Copy link

zs-soft commented Jan 26, 2019

如题,当前代码有实现鼠标选择,但是具体实现功能在那块,或者说当前系统有封装好的回调?

@akdcl
Copy link
Contributor

akdcl commented Jan 30, 2019

关于拾取,需要自己来根据需求实现。
这是一些例子:
https://egret-labs.github.io/egret3d/examples/index.html?example=RaycastTest
https://github.com/egret-labs/egret3d/blob/master/examples/src/examples/RaycastTest.ts

引擎也封装了通用的 raycast 接口,egret3d.raycast()、egret3d.raycastAll()

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