Browse Source

Send back RayInfo distance with ContainerRayCast

Added an 8th word to ContainerRayCast's return, which is the distance.
Steven Saric 13 years ago
parent
commit
75baf20d5f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Engine/source/scene/sceneContainer.cpp

+ 2 - 2
Engine/source/scene/sceneContainer.cpp

@@ -1633,9 +1633,9 @@ DefineEngineFunction( containerRayCast, const char*,
    char *returnBuffer = Con::getReturnBuffer(256);
    char *returnBuffer = Con::getReturnBuffer(256);
    if(ret)
    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,
                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
    else
    {
    {