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