Browse Source

Copy ray origin to first point in _renderPoints

melsov 4 years ago
parent
commit
5e269144b2
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Debug/rayHelper.ts

+ 2 - 0
src/Debug/rayHelper.ts

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