I am looking for a joint that connects two bodies
as if you stapled a string to each body at respective locations.
for instance,
/// <summary>
/// two bodies strung together
/// </summary>
/// <param name="minimumDist">The minimum distance the string must be</param>
/// <param name="maximumDist">The farthest the string can stretch</param>
public StringJoint(Body bodyA, Vector2 stapleA, Body bodyB, Vector2 stapleB, float minimumDist, float maximumDist)
{
//stapleA and B are the respective anchors on the bodies offset from the bodies' centers,
//read param descriptions for the other two parameters
//the string does not have any "springiness"
}
If this doesn't exist, how could I best create one?
Thank you so much!
as if you stapled a string to each body at respective locations.
for instance,
/// <summary>
/// two bodies strung together
/// </summary>
/// <param name="minimumDist">The minimum distance the string must be</param>
/// <param name="maximumDist">The farthest the string can stretch</param>
public StringJoint(Body bodyA, Vector2 stapleA, Body bodyB, Vector2 stapleB, float minimumDist, float maximumDist)
{
//stapleA and B are the respective anchors on the bodies offset from the bodies' centers,
//read param descriptions for the other two parameters
//the string does not have any "springiness"
}
If this doesn't exist, how could I best create one?
Thank you so much!