Esempio n. 1
0
 public void Set(UnityEngine.Collider source, int phase, float thickness)
 {
     boundsMin           = source.bounds.min - Vector3.one * (thickness + source.contactOffset);
     boundsMax           = source.bounds.max + Vector3.one * (thickness + source.contactOffset);
     translation         = source.transform.position;
     rotation            = source.transform.rotation;
     scale               = source.transform.lossyScale;
     contactOffset       = thickness;
     this.collisionGroup = phase;
     this.trigger        = source.isTrigger;
     this.id             = source.GetInstanceID();
 }