static bool preSolve(cpArbiter arb, cpSpace space, object o) { cpShape a, b; arb.GetShapes(out a, out b); OneWayPlatform platform = (OneWayPlatform)a.userData; // (OneWayPlatform*)cpShapeGetUserData(a); if (cpVect.cpvdot(arb.GetNormal(), platform.n) < 0) { arb.Ignore(); // cpArbiterIgnore(arb); return(false); } return(true); }