问题
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