/// <summary> /// Removes a given spring joint from the world if it exists. /// </summary> /// <param name="_joint"></param> public void RemoveSpringJoint(ABSpringJoint _joint) { if (Springs.Contains(_joint)) { Springs.Remove(_joint); return; } Debug.LogWarning("Attempted to remove a spring joint from world that didn't exist."); }
public void AddSpringJoint(ABSpringJoint _joint) { if (Springs.Contains(_joint)) { Debug.LogWarning("Can't add duplicate spring joints!"); return; } Springs.Add(_joint); }