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

Character Controller Velocity#

Physics 3D / Collider / Character Controller / Character Controller Velocity

Description#

Compares the Velocity property of Character Controller component to another value

Parameters#

Name Description
Character Controller
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("Character Controller Velocity")]
    [Category("Physics 3D/Collider/Character Controller/Velocity")]
    [Description("Compares the Velocity property of Character Controller component to another value")]
    
    [Image(typeof(IconCapsuleSolid), ColorTheme.Type.Lime, typeof(BadgeCharacter))]
    [Keywords("Physics, 3D, Kinematic")]
    
    [Parameter("Character Controller")]
    [Parameter("Value")]
    
    [Serializable]
    public class GenConditionVector3_CharacterController_CheckVelocity : Condition
    {
        [SerializeField] private GetGameObject m_CharacterController = new GetGameObject(
            new GenTypeGameObject_CharacterController()
        );
        
        [SerializeField] private GetVector3 m_Value = new GetVector3();
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Velocity");
            return $"{this.m_CharacterController} {member} = {this.m_Value}";
        }
        
        protected override bool Run(Args args)
        {
            CharacterController component = this.m_CharacterController.Get<CharacterController>(args);
            if (component == null) return false;
            
            return component.velocity == (Vector3) this.m_Value.Get(args);
        }
    }
}

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