Games [XUI2D] Newton's Cradle Example

Discussion in 'Game Development' started by Erel, Sep 9, 2018.

  1. Erel

    Erel Administrator Staff Member Licensed User

    A simple example:



    1. It loads the objects.
    2. Creates the rope joints.
    3. That's it. Everything just happens.

    A bit of code is required to draw the ropes.

    Note that the restitution is set to 1.02 which is larger than the maximum value. This helps with preserving the motion energy.

    It is included in the examples pack.

    https://www.b4x.com/android/forum/threads/xui2d-example-pack.96454/
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice