DIFF

class ShapeSource

Part of Debug Shape API definition

Constructors 1

proto private void ~Shape()

don't call destructor directly. Use Destroy() instead

Methods 16

proto native void GetMatrix(out vector mat[4])
proto native void SetDirection(vector direction)
proto native void SetPosition(vector position)
proto native void SetFlags(ShapeFlags flags)
proto static native Shape CreateTris(int color, ShapeFlags flags, vector p[], int num)
proto static native Shape CreateSphere(int color, ShapeFlags flags, vector origin, float radius)
proto static native Shape CreateFrustum(float horizontalAngle, float verticalAngle, float length, int color, ShapeFlags flags)
Referenced by Debug.DrawFrustum()
proto static native Shape CreateCylinder(int color, ShapeFlags flags, vector origin, float radius, float length)
static Shape CreateArrow(vector from, vector to, float size, int color, ShapeFlags flags)
static Shape CreateBridgeArrow(vector from, vector to, float size, int color, ShapeFlags flags)
References CreateLines(), vector.Normalize(), vector.Perpend()
Show 1 more, Vector()
static void CreateMatrix(vector mat[4], float axisLength = 0.05, float arrowSize = 0.0)
References Create(), and CreateArrow()