420 {
421 array<Shape> shapes = new array<Shape>;
422
423 vector endL, endR;
424 Math3D.ConePoints(pos, lenght, halfAngle, offsetAngle, endL, endR);
425
426
427 shapes.Insert(
Debug.DrawLine(pos, endL, color, flags) );
428
429 shapes.Insert(
Debug.DrawLine(pos, endR, color, flags) );
430
431 shapes.Insert(
Debug.DrawLine(endL, endR, color, flags) );
432
433 shapes.Insert(
Debug.DrawLine(pos, pos +
Vector(Math.Cos(offsetAngle), 0, Math.Sin(offsetAngle)).
Normalized() * lenght, color, flags) );
434
435 return shapes;
436 }
proto vector Normalized()
return normalized vector (keeps orginal vector untouched)
proto native vector Vector(float x, float y, float z)
Vector constructor from components.