I use ISceneCollisionManager::getCollisionPoint(ray, collisionTriangles, point, triangle)
The compiler tell me it need five parameters
Though the document http://irrlicht.sourceforge.net/docu/cl ... effc49d155 shows it only need 4 parameters as I give
But when I check my Irrlicht include file C:\3rd-libs\irrlicht-1.6\source\Irrlicht\CSceneCollisionManager.h , I found it really require five parameter, the declaration is
Code: Select all
//! Finds the collision point of a line and lots of triangles, if there is one.
virtual bool getCollisionPoint(const core::line3d<f32>& ray,
ITriangleSelector* selector, core::vector3df& outCollisionPoint,
core::triangle3df& outTriangle,
const ISceneNode* & outNode);
Thank you for your kindly help