Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Libraries Making Calls to User-Created Functions #35

Closed
tman144566 opened this Issue Jul 31, 2013 · 5 comments

Comments

Projects
None yet
2 participants

Hello

I have a question about the interfacing of the "Fisica" library and "processing.py". I am trying to use the FContact class to detect the vertical component of the contact normal. According to the reference, you must implement the methods "contactStarted (FContact contact)", "contactPersisted (FContact contact)", and "contactedEnded (FContact contact)" in your applet in order to access method getNormalY (). These methods are supposedly called automatically when a contact is detected, such as the key event methods in processing. Please let me know if there is any way to get this to work with processing.py.

Reference: http://www.ricardmarxer.com/fisica/reference/index.html

Thanks
Nathaniel J. Morris

Owner

jdf commented Aug 1, 2013

Unfortunately, there's no way to do this unless I ship processing.py with Fisica built in, since I'd have to make build-time reference to several fisica package classes, and then match those classes at runtime. I'm not at all opposed to the idea. I'll try to contact Fisica's author and discuss the idea with him.

Thank you for responding so quickly about my dilemma. In addition to my previous post, I currently use the majority of Fisica's classes in processing.py. without any issues. Fisica is a very nice rigid body simulation library and I know many people would enjoy the support via processing.py.

Thanks
Nathaniel J. Morris

Owner

jdf commented Aug 4, 2013

Just tp let you know, things are going slowly but steadily. I'm porting all of the fisica example programs to processing.py, and fixing bugs as I find them.

@ghost ghost assigned jdf Aug 4, 2013

Thank you for letting me know and resolving this issue.

Owner

jdf commented May 6, 2014

Fisica has been updated to make it compatible with processing.py.

@jdf jdf closed this May 6, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment