Ejemplo n.º 1
0
 public void Detach(BridgeJoint bridgejoint)
 {
     //if(_connectedTo.Contains(bridgejoint))
     //{
     //	bridgejoint.enabled = false;
     //	bridgejoint.joint.enabled = false;
     //}
 }
Ejemplo n.º 2
0
        public bool EndStretch()
        {
            editing = false;
            if(partLength < Grid.gridSize)
            {
                Destroy(gameObject);
                return false;
            }
            originConnection = SetupConnectionAtPosition(partOrigin);
            endConnection = SetupConnectionAtPosition(partEnd);

            rigid.mass = partMass;
            resetTransform = new TransformData(transform);
            Level.AddToLevel(this);
            return true;
        }