SandPhoenix
SandPhoenix

Reputation: 11

Access b2Body from one layer to another

Is it possible for b2Body which was created in one layer to have its properties (position, angle) to be modified in another layer?

Upvotes: 1

Views: 36

Answers (1)

Andrew
Andrew

Reputation: 24866

Of course. All you need for modification is a pointer to the body. Just pass this pointer wherever you want and modify the body state from there

Upvotes: 1

Related Questions