Now that the mallet moves, we are going to make it interact with a puck. When the mallet touches the puck, we are going to apply a force to it in the opposite direction.
You can click the Play button in the toolbar and see how the mallet moves based on the mouse position. You will notice that it collides with the walls, follows the mouse cursor smoothly, and changes its movement speed based on how fast and far you move your mouse.
0). Set its scale to (
0.1, uncheck Use Gravity, open the Constraints section, and check Freeze Position Y and Freeze Rotation ...