开发者

Box2D SetAsOrientedBox

开发者 https://www.devze.com 2022-12-31 18:32 出处:网络
The command \"SetAsOrientedBox\" in Box2D doesn\'t work anymore. I couldn\'t find out the new com开发者_如何学编程mand for it. Can someone tell me the new command?

The command "SetAsOrientedBox" in Box2D doesn't work anymore. I couldn't find out the new com开发者_如何学编程mand for it. Can someone tell me the new command?

Old example: boxDef.SetAsOrientedBox(0.4, 0.1, new b2Vec(0.1, 0.1), 0.3);


If you are using the as3 port SetAsOrientedBox should work. If you are using the Alchemy port the SetAsBox method takes the size and the position of the body def.

0

精彩评论

暂无评论...
验证码 换一张
取 消