コード例 #1
0
 public virtual void RecalcSelfMass()
 {
     if (AutomaticForceCalculatorOption != AutomaticForceCalculatorCallerEnum.Never)
     {
         _selfMass = RopesAttachedComponent.GetSelfMass();
     }
 }
コード例 #2
0
 public virtual void RecalcOthersMass()
 {
     if (AutomaticForceCalculatorOption != AutomaticForceCalculatorCallerEnum.Never)
     {
         _sumOfOtherObjectsMass = RopesAttachedComponent.GetSumOfOtherObjectsMass();
         //If Not Attached to Ropes Add force equal own Mass to not stay in Air
         if (_sumOfOtherObjectsMass == 0)
         {
             _sumOfOtherObjectsMass = RopesAttachedComponent.GetSelfMass();
         }
     }
 }