Default Solver Velocity Iterations#
Physics / Default Solver Velocity Iterations
Can Read
Can Write
Description#
The Default Solver Velocity Iterations static property of the Physics 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("Default Solver Velocity Iterations")]
[Category("Physics/Default Solver Velocity Iterations")]
[Description("The Default Solver Velocity Iterations static property of the Physics class")]
[Image(typeof(IconPhysics), ColorTheme.Type.Lime)]
[Serializable]
public class GenTypeInteger_Physics_DefaultSolverVelocityIterations : TypeNumber
{
public override double GetPreview(GameObject source)
{
return Physics.defaultSolverVelocityIterations;
}
public override double Get(Args args)
{
return Physics.defaultSolverVelocityIterations;
}
public override void Set(double value, Args args)
{
Physics.defaultSolverVelocityIterations = (int) value;
}
public override string ToString()
{
return $"Physics Default Solver Velocity Iterations";
}
protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
}
}