an example of a nape physics update loop