Thanks for the help Katopz ,But if I put the plane on some angle , is the sphere still going to stay on an offset from plane surface?.
On Thu, Jul 29, 2010 at 1:09 PM, katopz <[email protected]> wrote: > i think you miss plane normal or unproject? > > try > http://away3d.googlecode.com/svn/branches/lite/bin/ExPlane3D.swf > > src > > http://away3d.googlecode.com/svn/branches/lite/src/interactives/ExPlane3D.as > > libs > http://away3d.googlecode.com/svn/branches/lite > > hth > > > On 29 July 2010 16:14, Michael Iv <[email protected]> wrote: > >> This question for math gurus among us :) >> >> Actually it seems to be straightforward but I still can't get it work. >> I have got a plane (floor) which is elevated 35 degrees at X axis. i >> have small plane (tracker) that I need to move on top of the floor plane >> using Mouse3D x,y,z coordinates. >> The problem . Because the tracker is assigned the coordinates of the floor >> it actually intersects with it.I need to offset it let's say 100 px on local >> Y. If the floor was not sloped it would be piece of cake ( just to change >> its Y). But here it appears to be more tricky.Already tried to scale ,add, >> subtract the position vector as well as retrieve the normal vector from >> underneath face andto transform it to global coords. Nothing gets it >> right.The only close solution I have found by now is to add to the tracker >> position a vector with some Y component offset.But it gives uneven Y of the >> tracker while moving it around the floor. >> I am sure I miss some basic calculation here. >> Some one has an idea how to solve it ? >> >> Thanks a lot ! >> >> -- >> Michael Ivanov ,Programmer >> Neurotech Solutions Ltd. >> Flex|Air |3D|Unity| >> www.neurotechresearch.com >> http://blog.alladvanced.net >> http://www.meetup.com/GO3D-Games-Opensource-3D/ >> Tel:054-4962254 >> [email protected] >> [email protected] >> >> > > > -- > Regards > ----------------------------------------------------------- > Todsaporn Banjerdkit, katopz, http://sleepydesign.com > Away3DLite and JigLibFlash Developer Team > -- Michael Ivanov ,Programmer Neurotech Solutions Ltd. Flex|Air |3D|Unity| www.neurotechresearch.com http://blog.alladvanced.net http://www.meetup.com/GO3D-Games-Opensource-3D/ Tel:054-4962254 [email protected] [email protected]
