Well, just what the title says. I tried implementing a custom velocity_func and discovered that chipmunk-ffi is passing me nil for the gravity parameter. Replacing Vect.by_value with CP_FLOAT, CP_FLOAT in the callback definition causes FFI to pass the vector as two float values and this works on OS X, but it's probably not portable.
Well, just what the title says. I tried implementing a custom velocity_func and discovered that chipmunk-ffi is passing me
nilfor the gravity parameter. ReplacingVect.by_valuewithCP_FLOAT, CP_FLOATin the callback definition causes FFI to pass the vector as two float values and this works on OS X, but it's probably not portable.