Update collision example so textbox updates with slider

[#48674803]