MCPcopy Create free account
hub / github.com/demoth/jake2 / PM_GoodPosition

Method PM_GoodPosition

qcommon/src/main/java/jake2/qcommon/PMove.java:893–906  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

891 }
892
893 public static boolean PM_GoodPosition() {
894 trace_t trace;
895 float[] origin = { 0, 0, 0 }, end = { 0, 0, 0 };
896 int i;
897
898 if (pm.s.pm_type == Defines.PM_SPECTATOR)
899 return true;
900
901 for (i = 0; i < 3; i++)
902 origin[i] = end[i] = pm.s.origin[i] * 0.125f;
903 trace = pm.trace.trace(origin, pm.mins, pm.maxs, end);
904
905 return !trace.allsolid;
906 }
907
908 /**
909 * On exit, the origin will have a value that is pre-quantized to the 0.125

Callers 2

PM_SnapPositionMethod · 0.95

Calls 1

traceMethod · 0.65

Tested by

no test coverage detected