Baumgarte TOI Scale#
Physics 2D / Baumgarte TOI Scale
Can Read
Can Write
Description#
The Baumgarte TOI Scale static property of the Physics 2D class
Code#
// <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("Baumgarte TOI Scale")]
[Category("Physics 2D/Baumgarte TOI Scale")]
[Description("The Baumgarte TOI Scale static property of the Physics 2D class")]
[Image(typeof(IconPhysics), ColorTheme.Type.Lime, typeof(Badge2D))]
[Keywords("Physics, 2D")]
[Serializable]
public class GenTypeNumber_Physics2D_BaumgarteTOIScale : TypeNumber
{
public override double GetPreview(GameObject source)
{
return Physics2D.baumgarteTOIScale;
}
public override double Get(Args args)
{
return Physics2D.baumgarteTOIScale;
}
public override void Set(double value, Args args)
{
Physics2D.baumgarteTOIScale = (float) value;
}
public override string ToString()
{
return $"Physics 2D Baumgarte TOI Scale";
}
protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
}
}