The variables p(position) are replaced into q.
fractional collision time is supported. There is no bug in wall and ball collision. There is some bug in balls collision.
add figure