简体   繁体   English

是否有一个away3D hitTestObject等效项?

[英]Is there an away3D hitTestObject equivalent?

i am working with away3D and i find myself in dire need of a hitTestObject-method. 我正在与away3D合作,我发现自己迫切需要一种hitTestObject方法。 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. 我已经尝试过distanceTo,但是它会计算到centerPoints的距离,因此不能选择使用此方法,因为我需要检测所有碰撞。

Does anyone have a good way of detecting hits on another object in away3D? 有没有人能很好地检测away3D中另一个对象的命中率? thanks in advance. 提前致谢。

Away3D is a renderer, not a physics engine. Away3D是渲染器,而不是物理引擎。 To have 'collisions', you would need some kind of physics engine involved like JigLib . 要实现“碰撞”,您需要某种涉及JigLib的物理引擎。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM