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

Check Capsule#

Physics / Check Capsule Start, End, Radius, LayerMask, QueryTriggerInteraction

  • Can Read

  • Cannot Write

Description#

Returns the execution of Check Capsule static method on 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]
    
    [Title("Check Capsule")]
    [Category("Physics/Check Capsule", "Start, End, Radius, LayerMask, QueryTriggerInteraction")]
    [Description("Returns the execution of Check Capsule static method on the Physics class")]
    
    [Image(typeof(IconPhysics), ColorTheme.Type.Lime)]
    
    [Serializable]
    public class GenTypeBool_Physics_CheckCapsule_5_Vector3Start_Vector3End_FloatRadius_IntLayerMask_QueryTriggerInteractionQueryTriggerInteraction : TypeBool
    {
        [SerializeField] private GetVector3 m_Start = new GetVector3();
        
        [SerializeField] private GetVector3 m_End = new GetVector3();
        
        [SerializeField] private GetNumber m_Radius = new GetNumber();
        
        [SerializeField] private GetInteger m_LayerMask = new GetInteger();
        
        [SerializeField] private QueryTriggerInteraction m_QueryTriggerInteraction = default;
        
        public override bool Get(Args args)
        {
            bool value = (bool) Physics.CheckCapsule(
                (Vector3) this.m_Start.Get(args),
                (Vector3) this.m_End.Get(args),
                (float) this.m_Radius.Get(args),
                (int) this.m_LayerMask.Get(args),
                this.m_QueryTriggerInteraction
            );
            return value;
        }
        
        public override string ToString()
        {
            return $"Physics Check Capsule ({this.m_Start}, {this.m_End}, {this.m_Radius}, {this.m_LayerMask}, {this.m_QueryTriggerInteraction})";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}

Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.