Hinge Joint Use Limits#
Physics 3D / Joint / Hinge Joint / Hinge Joint Use Limits
Description#
Compares the Use Limits property of Hinge Joint component to another value
Parameters#
| Name | Description |
|---|---|
| Hinge Joint |
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("Hinge Joint Use Limits")]
[Category("Physics 3D/Joint/Hinge Joint/Use Limits")]
[Description("Compares the Use Limits property of Hinge Joint component to another value")]
[Image(typeof(IconHinge), ColorTheme.Type.Lime)]
[Keywords("Physics, 3D")]
[Parameter("Hinge Joint")]
[Serializable]
public class GenConditionBool_HingeJoint_CheckUseLimits : Condition
{
[SerializeField] private GetGameObject m_HingeJoint = new GetGameObject(
new GenTypeGameObject_HingeJoint()
);
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Use Limits");
return $"{this.m_HingeJoint} {member}";
}
protected override bool Run(Args args)
{
HingeJoint component = this.m_HingeJoint.Get<HingeJoint>(args);
if (component == null) return false;
return component.useLimits;
}
}
}