Here is one way. First add a ground plane
before you start
physics. The ground plane is an automatic floor and is invisible.
The balls will not have anything to fall off of, though, when they
get to the edge. They will stay on the invisible floor.
phy set ground plane 1
phy start
Then move the waterwheel up (y) to 8, so it will clear the ground.
Notice where I have put 8 in the positions.
make object box wheel, 2,2,20
position object wheel, 0,8,10
phy make rigid body dynamic box wheel
make object box wheelmount1, 1,1,1
position object wheelmount1, 0,8,20.5
phy make rigid body Static box wheelmount1
phy make cylindrical joint wheel, wheel, wheelmount1, object position x(wheelmount1), object position y(wheelmount1), object position z (wheelmount1), 0, 0, 1
make object box wheelmount2, 1,1,1
position object wheelmount2, 0,8,-0.5
phy make rigid body Static box wheelmount2
Then turn off physics ( comment it out ) on the original ground box:
` create ground object
make object box 1, 50, 1, 50
position object 1, 0, -2, 0
`phy make rigid body static box 1
color object 1, rgb(rnd(255), rnd(255), rnd(255))
set object ambient 1, 0
Put this in the do loop to rotate the old ground:
Don't forget to change the code back if you want the example to
work as it did before you did this.
Ad Astra Per Asper