是否有一个away3D hitTestObject 等效项?
我正在使用away3D,我发现自己迫切需要一个hitTestObject方法。 据我所知,图书馆中没有这样的方法。我已经尝试过 distanceTo,但它计算的是距中心点的距离,因此使用此方法不是一个选项,因为我需要检测所有碰撞。
有人有一个好的方法来检测away3D中另一个物体的点击吗?提前致谢。
i am working with away3D and i find myself in dire need of a hitTestObject-method.
As far as i have found out, there is no such method present in the library. I have already tried distanceTo, but that calculates the distance from the centerPoints, so using this method is not an option since i need to detect all collisions.
Does anyone have a good way of detecting hits on another object in away3D? thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Away3D 是一个渲染器,而不是一个物理引擎。要产生“碰撞”,您需要某种物理引擎,例如 JigLib。
Away3D is a renderer, not a physics engine. To have 'collisions', you would need some kind of physics engine involved like JigLib.