inspect this code to learn how to make an object have the effect that something is throwing or shooting it.