ThankYou very much that worked fine:) Now after using: _bspHitTest.getUVIntersectPosition
I try to get name of hited Plane by _bspHitTest.lastHittedMeshName For the first hit i get the name of plane but for others always null. I use lastest svn version. Or is there better way to get hited Plane(dynamicaly added to _tree)?? Regards, MG On 16 Lis, 00:53, Fabrice3D <[email protected]> wrote: > _endPos.x = 0; > _endPos.y = 0; > _endPos.z = RANGE; > _endPos.transform(_endPos, _camera.sceneTransform); > > var position:Number3D = _bspHitTest.getIntersectPosition(_camera.position, > _endPos); > > if you want project the mouse, use _view.mouse coordinates > var pMouse:Number3D = _view.camera.unproject(_view.mouseX, _view.mouseY); > > Fabrice > > On Nov 15, 2010, at 11:11 PM, macgor wrote: > > > Hi, > > > I'm trying to somehow use BSPHitTest class to get coordinates where > > did I click on the wall. I can't figure it out how to use methods in > > this class to get this position. I have also some dynamicaly added > > planes to BSPTree and also i need to get know what plane did I hit. > > > bspHit.getIntersectPosition(_view.camera.position,_view.camera.unproject(mouseX,mouseY)) > > ?? > > or somehow? > > > I'm too stupid to figure it out probably.... so please help anybody:) > > > Regards, > > > MG
