b2LoopShape was removed in Box2d 2.2.1

General discussion about Box2D tutorials
Post Reply
vkreal
Posts: 66
Joined: Sun Jan 13, 2013 7:29 pm

b2LoopShape was removed in Box2d 2.2.1

Post by vkreal »

A very newb question, b2LoopShape was removed in Box2d 2.2.1; not sure what to use instead? Any suggestions would be greatly appreciated!

Thanks
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: b2LoopShape was removed in Box2d 2.2.1

Post by iforce2d »

You can use b2ChainShape, which has two options: CreateLoop, and CreateChain. They are almost identical except that one of them closes the gap between the first and last vertices.
vkreal
Posts: 66
Joined: Sun Jan 13, 2013 7:29 pm

Re: b2LoopShape was removed in Box2d 2.2.1

Post by vkreal »

Awesome iforce2d, it works!
Post Reply