I am trying to create a body with a single polygon shape. So I create a body def with a position and angle, then create the body. Then I create a b2PolygonDef with the verts I want and create the shape attached to the body.
When specifying locations for verts I am assuming this is in the body angle = 0 orientation. However, the shape does not seem to take on the angle of the body it is attach to or at least the verts aren't being transformed.
Am I just doing something out of order here? Do I have to create the shape on the body first and then specify the verts? This seems kindof bad because then specifying verts in a shape def is broken.
When specifying locations for verts I am assuming this is in the body angle = 0 orientation. However, the shape does not seem to take on the angle of the body it is attach to or at least the verts aren't being transformed.
Am I just doing something out of order here? Do I have to create the shape on the body first and then specify the verts? This seems kindof bad because then specifying verts in a shape def is broken.