# Default Max Depenetration Velocity

[Physics](index.md) / **Default Max Depenetration Velocity**

<div class="grid cards" markdown>

* :green_circle: Can Read

* :green_circle: Can Write

</div>

## Description

The Default Max Depenetration Velocity static property of the Physics class

## Code

```cs
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Get]
    [Set]
    
    [Title("Default Max Depenetration Velocity")]
    [Category("Physics/Default Max Depenetration Velocity")]
    [Description("The Default Max Depenetration Velocity static property of the Physics class")]
    
    [Image(typeof(IconPhysics), ColorTheme.Type.Lime)]
    
    [Serializable]
    public class GenTypeNumber_Physics_DefaultMaxDepenetrationVelocity : TypeNumber
    {
        
        public override double GetPreview(GameObject source)
        {
            return Physics.defaultMaxDepenetrationVelocity;
        }
        
        public override double Get(Args args)
        {
            return Physics.defaultMaxDepenetrationVelocity;
        }
        
        public override void Set(double value, Args args)
        {
            Physics.defaultMaxDepenetrationVelocity = (float) value;
        }
        
        public override string ToString()
        {
            return $"Physics Default Max Depenetration Velocity";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}


```

