Placing a body in contact with another.

I have a shape with multiple legs, like a star. I need to teleport it to a location with a certain angle and with one or two of its legs in contact with the ground (depending on the angle it is set to). From the moment it arrives it needs to start interacting with the 'ground' and that is where my problem lies. If I bring it in too high it will spin in the air, if I bring it in too low then it penetrates the ground and by the time box2d has corrected this it has lost the angle it is supposed to be at. I have tried using body->GetContactList() to see if it is touching the ground, unfortunately this sometimes returns contacts when it is not touching the ground (there are only two objects in my world at the moment).

Does anyone have any advice or suggestions on how I could do this? I am very new to box2d so I am kind of hoping that there is something very simple that I have missed. Or just didn't understand.

Thanks for any help you can provide.

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