Can't get collision detection or onclick to work in THREE.js

◇◆丶佛笑我妖孽 提交于 2020-01-06 01:56:10

问题


I've spent 2 days now trying to get this collision detection and click on object to work, with some luck but not close to perfect. I want to detect the camera's collision with objects as it moves around the scene (like if it were a shuttle and it would go boom if you ran into a planet or sphere). Any help would be greatly appreciated. FYI, ShipControls are a clone of FlyControls (slightly modified). Example: http://www.benmarshall.me/projects/playground/solar-system/index2.html


回答1:


Ray doesn't support ParticleSystem. Yet!



来源:https://stackoverflow.com/questions/11331663/cant-get-collision-detection-or-onclick-to-work-in-three-js

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!