diff --git a/Engine/source/scene/sceneContainer.cpp b/Engine/source/scene/sceneContainer.cpp index 3643fa5db..27eabbe6c 100644 --- a/Engine/source/scene/sceneContainer.cpp +++ b/Engine/source/scene/sceneContainer.cpp @@ -1612,7 +1612,8 @@ DefineEngineFunction( containerRayCast, const char*, "@returns A string containing either null, if nothing was struck, or these fields:\n" "" + "
  • The x, y, z of the normal of the face that was struck.
  • " + "
  • The distance between the start point and the position we hit.
  • " "@ingroup Game") { @@ -1633,9 +1634,9 @@ DefineEngineFunction( containerRayCast, const char*, char *returnBuffer = Con::getReturnBuffer(256); if(ret) { - dSprintf(returnBuffer, 256, "%d %g %g %g %g %g %g", + dSprintf(returnBuffer, 256, "%d %g %g %g %g %g %g %g", ret, rinfo.point.x, rinfo.point.y, rinfo.point.z, - rinfo.normal.x, rinfo.normal.y, rinfo.normal.z); + rinfo.normal.x, rinfo.normal.y, rinfo.normal.z, rinfo.distance); } else {