0

I have created a single body in box2D, which consists of 2 fixtures. I have a CCSprite userData for each fixture, but i don't know how to set the sprite position and rotation to match the fixture shape...i can't find shape.position or fixture.position in the docs.

What i'm missing ?

Thanks!

4

1 回答 1

0

我自己不是 cocos2d 和 box2d 方面的专家,我现在只是在学习这两个方面,但是有什么理由不能为每个夹具创建一个单独的主体,然后用某种接头将它们固定在一起将 CCSprite 用户数据分配给每个身体?

于 2011-09-12T21:35:18.660 回答