onBeginContact: function (contact, selfCollider, otherCollider) {
otherCollider.body.type = cc.RigidBodyType.Static;
},
在碰撞的时候想把碰撞物体的刚体类型设置为Static,但是设置会失败,同时报Assertion failed! Pls debug.问题到底处在哪里?求大神们指点指点
onBeginContact: function (contact, selfCollider, otherCollider) {
otherCollider.body.type = cc.RigidBodyType.Static;
},
在碰撞的时候想把碰撞物体的刚体类型设置为Static,但是设置会失败,同时报Assertion failed! Pls debug.问题到底处在哪里?求大神们指点指点