我是 cocos3d 的新手。我想用 cc3linenode 画一条线。
这是代码
float arr_location[] = {x,y,z, dx,dy, dz };
CC3LineNode* lineNode = [CC3LineNode nodeWithName: @"Line test"];
[lineNode populateAsLineStripWith: 2
vertices: arr_location
andRetain: YES];
lineNode.color = ccGREEN;
[_lines addObject:lineNode];
[_activeWorld addChild:lineNode];
但是当我尝试这个时,我收到这样的错误
Instance method populateAsLineStripWith: vertices: andRetain: is not found(return type defaults to 'id')