public RopeGrabComponent(int ropeEntityId, RopeNode ropeNode, float distance, bool reverseClimbDirection) { _ropeEntityId = ropeEntityId; _ropeNode = ropeNode; _distance = distance; _joints = new Dictionary<Body, RevoluteJoint>(); _reverseClimbDirection = reverseClimbDirection; }
public RopeComponent(RopeNode ropeNodeHead, int interpolationCount, bool destroyAfterRelease, bool reverseClimbDirection, bool doubleAnchor) { _ropeNodeHead = ropeNodeHead; _interpolationCount = interpolationCount; _destroyAfterRelease = destroyAfterRelease; _reverseClimbDirection = reverseClimbDirection; _doubleAnchor = doubleAnchor; }
public void remove() { if (_previous != null) { _previous.next = _next; } if (_next != null) { _next.previous = _previous; } _previous = null; _next = null; }
public void insert(RopeNode node) { if (_next != null) { _next.previous = node; } node.previous = this; node.next = _next; _next = node; }