private void PrepareOutputs(Vector3 worldPosition)
 {
     outputs.Clear();
     outputs.hardness       = 0;
     outputs.collider       = null;
     outputs.hitPosition    = worldPosition;
     outputs.hitNormal      = Vector3.zero;
     outputs.vibrationSound = null;
 }
Example #2
0
        //Methods
        public void CopyTo(SurfaceOutputs to)
        {
            to.Clear();
            to.AddRange(this);

            to.hardness    = hardness;
            to.collider    = collider;
            to.hitPosition = hitPosition;
            to.hitNormal   = hitNormal;
        }