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

# Configurable Joint Target Position

[Physics 3D](../../index.md) / [Joint](../index.md) / [Configurable Joint](index.md) / **Configurable Joint Target Position**

## Description

Compares the Target Position property of Configurable Joint component to another value

## Parameters

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


```

