Question: Falling rod animation and wall for double pendulum

There is an animation of a falling rod in simulink here

How would that be presented in MapleSim? 

Also for the double pendulum, model in say if the bottom swing were to hit a wall?  Also model if two double swinging pendulums were to hit each other? 

Please Wait...