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

Constant Force Relative Force#

Physics 3D / Constant Force / Constant Force Relative Force

Description#

Compares the Relative Force property of Constant Force component to another value

Parameters#

Name Description
Constant Force
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("Constant Force Relative Force")]
    [Category("Physics 3D/Constant Force/Relative Force")]
    [Description("Compares the Relative Force property of Constant Force component to another value")]
    
    [Image(typeof(IconWeight), ColorTheme.Type.Lime)]
    [Keywords("Physics, 3D")]
    
    [Parameter("Constant Force")]
    [Parameter("Value")]
    
    [Serializable]
    public class GenConditionVector3_ConstantForce_CheckRelativeForce : Condition
    {
        [SerializeField] private GetGameObject m_ConstantForce = new GetGameObject(
            new GenTypeGameObject_ConstantForce()
        );
        
        [SerializeField] private GetVector3 m_Value = new GetVector3();
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Relative Force");
            return $"{this.m_ConstantForce} {member} = {this.m_Value}";
        }
        
        protected override bool Run(Args args)
        {
            ConstantForce component = this.m_ConstantForce.Get<ConstantForce>(args);
            if (component == null) return false;
            
            return component.relativeForce == (Vector3) this.m_Value.Get(args);
        }
    }
}

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