cocos2d-js 3.3 使用cc.PhysicsSprite创建的的Sprite无法跟随父Layer移动

使用cc.PhysicsSprite创建的的Sprite无法跟随父Layer移动,代码如下:

var fruit = new cc.PhysicsSprite(res.box_png);
this.layer.addChild(fruit);

var contentSize = fruit.getContentSize();
var body = new cp.Body(5, cp.momentForBox(Number.POSITIVE_INFINITY, contentSize.width, contentSize.height));
body.setPos(cc.p(0, 0));
fruit.setBody(body);

var shape = new cp.BoxShape(body, contentSize.width - 14, contentSize.height-10);
this.shape = shape;
this.shape.setCollisionType(1);
this.shape.setElasticity(1);

this.space.addBody( body );
this.space.addShape( shape );

this.layer.x += 100; //fruit没有跟着移动

如果使用cc.Sprite就没有问题

补充下:这个问题只在jsb上出现,web上是正常的

呼叫版主,呼叫版主

我也遇到相同的问题,我是想把PhysicsSprite加到一个父节点上,然后让父节点一直旋转,我开启debug后发现图片是加上去了,也转动了,但是body和shape在另一个地方,而且也没法随着父节点转动。。。楼主解决这个问题了吗?

用body.setPos(cc.p(0,0));