Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

Use Sub Step Contacts#

Physics 2D / Physics 2D / Use Sub Step Contacts

Description#

Compares the Use Sub Step Contacts static property of Physics 2D class to another value

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
{
    [Title("Use Sub Step Contacts")]
    [Category("Physics 2D/Physics 2D/Use Sub Step Contacts")]
    [Description("Compares the Use Sub Step Contacts static property of Physics 2D class to another value")]

    [Image(typeof(IconPhysics), ColorTheme.Type.Lime, typeof(Badge2D))]
    [Keywords("Physics, 2D")]

    [Serializable]
    public class GenConditionBool_Physics2D_CheckUseSubStepContacts : Condition
    {

        protected override string GetTitle(GameObject source)
        {
            string className = TextUtils.ThemeAsKeyword("Physics 2D");
            string member = TextUtils.ThemeAsKeyword("Use Sub Step Contacts");
            return $"{className} {member}";
        }

        protected override bool Run(Args args)
        {
            return Physics2D.useSubStepContacts;
        }
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.