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 Joint Swing Axis#

Physics 3D / Joint / Character Joint / Character Joint Swing Axis

Description#

Compares the Swing Axis property of Character Joint component to another value

Parameters#

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

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