As you can see in the video, the ball sometimes pass through the bat.
I’ve read about CCD Motion Clamping to allow a more accurate detection of the collision but it even does not work as expected.
Should I apply ccd to both the ball & the bat ?
I think the object that as the highest velocity is the bat, but what parameter should I apply for the
object.body.setCcdMotionThreshold(xxx) and object.body.setCcdSweptSphereRadius(xxx) given that the bat does not have a sphere shape ?
@yannick sounds better even if sometimes the ball don’t use the expected way.
With GLTFLoaderto add cool parts & tubegeometry to add ramps enable3d is cool !
@yannick : i’ve use @yandeu/tap and @yandeu/keyboard, but how could I prevent defaut unexpected behaviour of the tap or keyboard, that move the canvas or select text ?
No orbitcontrol don’t bother me for now.
See in the demo, when i long tap to move a flip, the ‘about’ text is selected. This is the default behaviour of a long touch on mobile but it is not relevant for the pinball.
Same on a compter, hitting arrow moves the canvas inside the browser window, so i would like to disable this defaut behavior. Does something like e.preventDefault exist with your tap & keyboard libs ?