Explorar o código

Copy ray origin to first point in _renderPoints

melsov %!s(int64=4) %!d(string=hai) anos
pai
achega
5e269144b2
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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);
 
     }