소스 검색

Merge pull request #115 from DavidWyand-GG/issue114-FootStepSounds

Fix for Issue #114 for Footstep Sounds
David Wyand 13 년 전
부모
커밋
942b1c39c1
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      Engine/source/terrain/terrCollision.cpp

+ 1 - 0
Engine/source/terrain/terrCollision.cpp

@@ -616,6 +616,7 @@ bool TerrainBlock::castRay(const Point3F &start, const Point3F &end, RayInfo *in
       
    // Set intersection point.
    info->setContactPoint( start, end );
+   getTransform().mulP( info->point );    // transform to world coordinates for getGridPos
 
    // Set material at contact point.
    Point2I gridPos = getGridPos( info->point );