hi all....
i need to find a vector3df of the intersection from a line(from the camera to the mouse position) but it must be in a plane(for example in the plane Y=0)....
i could make a huge ,flat,cube and use it with intersections and the collision manager....
there is something less complicated????
some function i can't find?
thanks......
collision from 2d position in a plane
Re: collision from 2d position in a plane
sorry for the up....
there is no one that can help me with this????
there is no one that can help me with this????
Try: sending it the ray you get from ISceneCollisionManager::getRayFromScreenCoordinates()
Code: Select all
plane3df planeToIntersectWith(vector3df(0,1,0), distanceFromOrigin);
planeToIntersectWith.getIntersectionWithPlane(ray.start, ray.getVector(), outVector);"Computers don't make mistakes! What they do they do on purpose!!"
-Dale Gribble
-Dale Gribble