I have a ball that I want to bounce off top and bottom wall but not the left and right wall of a worldbox, and also bounce off two other objects in the space. Can this be done? If so, any ideas would be a great help.
So yeah a bouncy ball that does not lose any of its velocity on impact.
And if anyone has any ideas how to make only two of the four walls of a worldbox absorb this velocity and stop the ball instantly that would be bonus!
you can control a phys.body’s velocity with the aptly named @velocity attribute.
check out the following example patch:
this example also shows how to use static phys.bodys in place of the phys.world worldbox.
you can "absorb" a rigid body’s velocity by setting it to 0 when it collides with certain objects.
check the following example for info on testing phys.body collisions: