Set Configurable Joint Configured In World Space#
Physics 3D / Joint / Configurable Joint / Set Configurable Joint Configured In World Space
Description#
Sets the Configured In World Space property of Configurable Joint component
Parameters#
| Name | Description |
|---|---|
| Configurable 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("Set Configurable Joint Configured In World Space")]
[Category("Physics 3D/Joint/Configurable Joint/Configured In World Space")]
[Description("Sets the Configured In World Space property of Configurable Joint component")]
[Image(typeof(IconJoint), ColorTheme.Type.Lime, typeof(BadgeCog))]
[Keywords("Physics, 3D")]
[Parameter("Configurable Joint")]
[Parameter("Value")]
[Serializable]
public class GenInstructionBool_ConfigurableJoint_SetConfiguredInWorldSpace : Instruction
{
[SerializeField] private GetGameObject m_ConfigurableJoint = new GetGameObject(
new GenTypeGameObject_ConfigurableJoint()
);
[SerializeField] private GetBool m_Value = new GetBool();
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Configured In World Space");
return $"{this.m_ConfigurableJoint} {member} = {this.m_Value}";
}
protected override Awaitable Run(Args args)
{
ConfigurableJoint component = this.m_ConfigurableJoint.Get<ConfigurableJoint>(args);
if (component == null) return Done;
component.configuredInWorldSpace = (bool) this.m_Value.Get(args);
return Done;
}
}
}