Re: Euphoria Chipmunk Physics
- Posted by Icy_Viking Oct 02, 2017
- 1631 views
petelomax said...
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.
I fixed the typo in the code. At cpDampedSpringInit. http://www.rapideuphoria.com/uploads/euchipmunkphy.zip