Re: Euphoria Chipmunk Physics
- Posted by petelomax Sep 15, 2017
- 1680 views
OK, I've had a closer look. From what I gather, passing/returning structures is highly compiler-dependent. I've pushed a working win32/phix-only version to PCAN.
Note that I only modified cpBodyGetPosition, cpBodySetPosition, cpBodyGetVelocity, deleted cpBodySetPos, and I think I spotted a simple typo in cpDampedSpringInit (untested).
Regards,
Pete
PS: during my investigations, I found that cpFloat is in fact C_DOUBLE, not C_FLOAT.