Makc it is the same as AdvancedMario example in the trunk ,where you have got a marker on the floor. In my case the difference is that the floor is slightly eleveated and the marker should hover above the plane and not to be on it as it is in the Mario app. I thought that it had to be that simple. But still did not solve it . Ray class could be helpful in this case .With it I would cast a ray from the marker to the floor , find the perpendicular ( normal vector) of that point , scale it and update the marker y. But Ray class getIntersect doesn't work well ( not just for me , had a discussion in that with Fabrice seems he is only one that knows to get it work fine). Without ray it is not just straightforward as it looks like.
On Fri, Jul 30, 2010 at 3:56 PM, makc <[email protected]> wrote: > > 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). > > a picture could help. because from the way it sounds you just need > additional offset lineary proportional to Y. -- 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]
