This snippet is written for an adapter of Irrlicht to argortha
Now, I want to write another adapter for DirectX
Just wondering the code underneath which specifies a lineCollision, it is to me a
line, but when passing to getCollisionPoint, it is a ray.
Can I treat them both the same?
I would use the
D3DXboxBoundProbe function
Rather be
D3DXIntersect instead, sorry
https://msdn.microsoft.com/en-us/library/windows/desktop/bb172713%28v=vs.85%29.aspx
irr::core::line3df lineCollision(actorPos, IrrVector3Adapter(io_actor->getPosition() + in_displacement));
irr::core::vector3df outColl;
irr::core::triangle3df outTri;
if (mScmgr->getSceneCollisionManager()->getCollisionPoint(lineCollision, mSelector, outColl, outTri))