In this project, we proposed new methods to analysize and generate character motions that invlove close contacts. We introduce the concept of topology coordinates, in which the topological relationships of the segments are embedded into the attributes. There is a wide range of applications of the new methods, for example, content-based retrieval and character animation synthesis.