Yep that works,
Here is an example showing the above coded boundary with a high bounce and an example of a normal static walled boundary with a high bounce.
You should see the normal ones ball fly out of the scene as the physics cannot handle the extreme bouncing.
The code boundary with static wall just 1 pixel in width and just within the boundary controls the bounce.
This is really great.
Drag_&_Physics_Bounce_constrains_v2.hypetemplate.zip (24.6 KB)