private static DebugColor SpaceDebugDrawColorForShapeCallback(cpShape handleShape, voidptr_t data) { IDebugDraw debugDraw = NativeInterop.FromIntPtr <IDebugDraw>(data); var shape = Shape.FromHandle(handleShape); return(debugDraw.ColorForShape(shape)); }