Box2d Flash AS3 (1.4.3 released)

I think you must do this manually check the b2Body.GetLinearVelocity() and take proper action.
Ygryggil wrote:I think you must do this manually check the b2Body.GetLinearVelocity() and take proper action.

it works, thanks!
I'm working with polygons, but I've found that the default limit for vertices (8) is very small, is there any reason (i.e. performance, etc.) to set it so small, or can I increase it without problems?
I changed the default value to 10 (I use stars with 10 vertices), could you increase the default a bit in the next releases?

MOD:
and an other question: I'd like my star to continuosly rotate but staying in place (like I've pinned it to the wall)
how can I do this? I think I have to use a constraint but in the docs I haven't found anything about using constraints. The other way I've found is using joints, for example use a distance joint with 0 distance, but to do this I would have two bodies, and I have only my star. Or should I create a static body and use the distance joint on that body and my star?
The reason is, because shapes must be convex, and once you get to 8 vertices in a convex shape, it looks more or less curved. To create a start shape you have to use multiple shapes 😉 For a five sided star, you should use five diamond shapes in the body.
Diggsey wrote:The reason is, because shapes must be convex, and once you get to 8 vertices in a convex shape, it looks more or less curved. To create a start shape you have to use multiple shapes 😉 For a five sided star, you should use five diamond shapes in the body.

oh, thanks
and you answered my not-asked question too, 'coz I noticed that collision with my non-convex star is not correct 🙂
so I will use five triangles instead of one star

and now I have an other question regarding Revolute joints, but I will start a new thread for it...
Hello.
In last version (1.4.3) that my machine began to go, I should make m_maxMotorTorque = 1000000000; Why it is necessary to set such large value? In the previous version (1.4.2) it is enough m_maxMotorTorque = 1000;
Freeeeeeeman wrote:Hello.
In last version (1.4.3) that my machine began to go, I should make m_maxMotorTorque = 1000000000; Why it is necessary to set such large value? In the previous version (1.4.2) it is enough m_maxMotorTorque = 1000;

I think it's because of the scale, in the previous versions by default Box2D used meters, but now it's in pixels
How find out size in meters?

Original thread: https://box2d.org/forum/viewtopic.php?t=47