Shape Coordinates
Posted on March 25, 2012
Keep in mind that a shape does not know about bodies and stand apart from the dynamics system. Shapes are stored in a compact form that is optimized for size and performance. As such, shapes are not easily moved around. You have to manually set the shape vertex positions to move a shape. However, when a shape is attached to a body using a fixture, the shapes move rigidly with the host body. In summary:
When a shape is not attached to a body, you can view it’s vertices as being expressed in world-space.
When a shape is attached to a body, you can view it’s vertices as being expressed in local coordinates.
形状坐标
发表于2012年3月25日请记住,形状不知道有关刚体和保持距离的动态系统。形状被存储在一个最佳的大小和性能好的紧凑表里。因此,形状不容易四处移动。您必须手动设置形状的顶点位置移动形状。但是,当一个形状(shape)利用一个夹具依附到刚体上的话,形状的移动要严格跟宿主刚体保持一致。概括如下:
当形状不连接于一体,你可以查看它的顶点,在世界空间表示。
当一个形状连接于一体,你可以查看它的顶点在局部坐标表示。