Saturday, July 12, 2014

Modified the physics to get somewhat more real looking bouncing behaviour, previously circular objects tended to be overly jumpy.

The parameters can be tweaked to get different behaviour of course.

9 comments:

  1. Raihan, I downloaded the latest Yapyg from github, but I can't run the old examples. Do you have any advice for me? I wanted to try if with master version it would maybe work on my device.

    ReplyDelete
    Replies
    1. The examples kept changing because I've modfied the interface functions again and again, it's best if you download the current yapygdemo sources from the github: https://github.com/rkibria/yapygdemo

      Sorry for the inconvenience!

      Delete
  2. Hi, I am using now the latest demo files and there's an import fixpoint error, here's the log http://pastebin.com/H1vVeE5t . All the c files cannot be imported. I'm trying to figure out why this is so.

    ReplyDelete
    Replies
    1. Did you do "python setup.py install" from the kivy console in the downloaded yapyg directory first? Some modules need to be built first with Cython.

      Delete
    2. I did run setup.py and now I can import yapyg in a python console. Still, I'm getting ImportError: No module named fixpoint. I'll check once again if I'm doing everything right.

      Delete
  3. Replies
    1. It converts floating point values to the fixpoint number representation yapyg uses internally. This is basically a less precise but faster implementation of non-whole numbers that can be computed with only integer operations so it runs fast even if you have no floating point processing unit in your device, for example most (I think) Android phones.

      Delete