فهرست منبع

Merge pull request #9304 from melsov/rayHelperOriginCopyFrom

Copy ray origin to first point in _renderPoints
David Catuhe 4 سال پیش
والد
کامیت
ad5769e107
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      src/Debug/rayHelper.ts

+ 2 - 0
src/Debug/rayHelper.ts

@@ -121,6 +121,8 @@ export class RayHelper {
         point.scaleInPlace(len);
         point.scaleInPlace(len);
         point.addInPlace(ray.origin);
         point.addInPlace(ray.origin);
 
 
+        this._renderPoints[0].copyFrom(ray.origin);
+
         Mesh.CreateLines("ray", this._renderPoints, this._scene, true, this._renderLine);
         Mesh.CreateLines("ray", this._renderPoints, this._scene, true, this._renderLine);
 
 
     }
     }