b2Body attached to point

Hi all,

I'm relatively new to Box2d in AS3 and have a (kinda noob) question (I suppose):

I want to attach a b2Body to a specific point each frame. I tried SetXform, but that also changes its rotation, which I don't want 🙁
Than I thought of a revolute joint, just like the mousejointDef. But for joints you need an object, and I only have a point 😮

Does anyone now how to fix this, should I use a joint or something else?

Thanks in advance

mrT
I don't know about Flash, but the C++ version SetXForm takes an angle parameter, so you can just set the current angle back if you don't want the angle to change.

The mouse joint is intended to use a static 'ground' body as the second body, so although technically it does need a body, it's pretty easy to make one for that purpose.
@irresistible force Yes I've tried that before (was indeed my first thought), but there's a problem with that: when the object is still attached to that point and collides with another body its angle is set to the previous state and because of that doesn't update itself but stays in that same position. Every frame this accurs, leading to no angular movement at all 🙁
That's why I was trying this with joints, but thanks, I'm now planning to convert a point to a body and after that use revolute joins
if anybody has a simpler idea, I'd really appreciate some feedback :p
I'm not sure why re-using the current angle (not previous angle!) would stop it from rotating... it should still have angular velocity. For example, this code has no effect on the angle:
Code:
body->SetTransform( newPosition, body->GetAngle() );

But as you say, mixing SetTransform with natural collisions will not work well.
It sounds like a revolute joint to a kinematic body might be the best idea.

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