RecursiveHullCheck() public static method

SV_RecursiveHullCheck
public static RecursiveHullCheck ( hull_t hull, int num, float p1f, float p2f, Vector3 &p1, Vector3 &p2, trace_t trace ) : bool
hull hull_t
num int
p1f float
p2f float
p1 Vector3
p2 Vector3
trace trace_t
return bool
示例#1
0
        static void TraceLine(ref Vector3 start, ref Vector3 end, out Vector3 impact)
        {
            trace_t trace = new trace_t();

            Server.RecursiveHullCheck(Client.Cl.worldmodel.hulls[0], 0, 0, 1, ref start, ref end, trace);

            impact = trace.endpos; // VectorCopy(trace.endpos, impact);
        }