344 {
345 array<Shape> shapes = new array<Shape>;
346
347 vector endL, endR;
348 Math3D.ConePoints(pos, lenght, halfAngle, offsetAngle, endL, endR);
349
350
351 shapes.Insert(
Debug.DrawLine(pos, endL, color, flags) );
352
353 shapes.Insert(
Debug.DrawLine(pos, endR, color, flags) );
354
355 shapes.Insert(
Debug.DrawLine(endL, endR, color, flags) );
356
357 shapes.Insert(
Debug.DrawLine(pos, pos +
Vector(Math.Cos(offsetAngle), 0, Math.Sin(offsetAngle)).
Normalized() * lenght, color, flags) );
358
359 return shapes;
360 }
proto vector Normalized()
return normalized vector (keeps orginal vector untouched)
proto native vector Vector(float x, float y, float z)
Vector constructor from components.