Skip to content

velocity_func receives nil for gravity #11

Description

@erisdev

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions