Try using this example from a game I downloaded.