using Microsoft.Xna.Framework;
namespace CalamityMod.Physics;
///
/// A representation of a rope segment, containing physical data such as position, velocity, etc., as well as a value which determines whether the rope is fixed in place and not subject to standard physics.
///
public struct RopeSegment
{
///
/// The current position of this segment.
///
public Vector2 Position;
///
/// The previous position of this segment.
///
public Vector2 OldPosition;
///
/// Whether this segment is fixed in place and not subject to standard physics, such as gravity.
///
public bool FixedInPlace;
public RopeSegment(Vector2 position)
{
Position = position;
OldPosition = position;
}
}