private void Awake()
 {
     _layerMask = LayerMaskUtil.CreateLayerMask("Player", "Head", "UI", "Interactive").Invert();
     if (_predictionBuffer == null || _historyBuffer == null)
     {
         InitBuffers();
     }
 }
Exemple #2
0
    //private static readonly Action<SectionForceInput>[] ForceApplicators;

    //static Airfoil()  {
    //    ForceApplicators = new Action<SectionForceInput>[3];
    //    ForceApplicators[(int) ForceType.Lift] = ApplyLift;
    //    ForceApplicators[(int)ForceType.Drag] = ApplyDrag;
    //    ForceApplicators[(int)ForceType.Moment] = ApplyMoment;
    //}

    private void Awake()
    {
        ConfigureAxes();
        RecalculateSectionProperties();
        _layerMask = LayerMaskUtil.CreateLayerMask("Player", "Head", "UI", "Interactive").Invert();

        Clear();
    }
Exemple #3
0
 void Awake()
 {
     _layerMask = LayerMaskUtil.CreateLayerMask(_layers);
 }