---
tags:
    - "Physics, 3D, Kinematic"
---

# Character Joint Swing Axis

[Physics 3D](../../index.md) / [Joint](../index.md) / [Character Joint](index.md) / **Character Joint Swing Axis**

## Description

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

## Parameters

| Name | Description |
| :--- | :---------- |
| Character Joint |  |
| Value |  |

## Code

```cs
// <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);
        }
    }
}


```

