i am trying to make physic-based ball scooping game.
tried the basic example on balls and platform provided within example. but the collision doesn’t seems to work properly there are case where the scoop just overlap with the ball, and case where the ball jumped out of bound
It seems to me that the bar has no momentum. You never apply force, you set it as static, which gives it infinite mass and inertia. When you then place it on top of existing objects, the engine has no clue what to do. Setting the Angle does not give the bar a velocity.
after additional searching and triage it seems like the main problem comes from enableSleeping configuration. it works just fine as soon as i disabled those.
It is a bit of a hack. As long as it’s slow it seems to work. If you would speed up the bar, setAngle would position it on top (through) other objects. No collision check is done between last and current angle. The correct way is with a constraint.
i see, and yeah you are right with faster speed it won’t give accurate representation of spinning. i’ve managed to set up the constraint. but still confused about how to add angular velocity to spin the scoop.