5

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. Can someone please help me with that?

LHBezier* bezier = [loader bezierWithUniqueName:@"BezierNode"];

[bezier makeStatic]; // not working
user123
  • 2,711
  • 5
  • 21
  • 25

1 Answers1

0

You can change body type like this:

bezier.body->SetType(b2_staticBody);
bezier.body->SetType(b2_dynamicBody);
bezier.body->SetType(b2_kinematicBody);
Vavius
  • 218
  • 2
  • 7