[英]How to retrieve makeStatic or makeDynamic methods in LHBezier? LevelHelper - Cocos2D
In the LevelHelper, I am able to set bezier shapes to static, dynamic etc. In my code, I am in need of changing these properties. 在LevelHelper中,我能够将bezier形状设置为静态,动态等。在我的代码中,我需要更改这些属性。 Can someone please help me with that? 有人可以帮我吗?
LHBezier* bezier = [loader bezierWithUniqueName:@"BezierNode"];
[bezier makeStatic]; // not working
You can change body type like this: 您可以像这样更改体型:
bezier.body->SetType(b2_staticBody);
bezier.body->SetType(b2_dynamicBody);
bezier.body->SetType(b2_kinematicBody);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.