Get Ignore Collision#
Physics 3D / Physics / Get Ignore Collision
Description#
Compares the Get Ignore Collision static method of Physics class to another value
Parameters#
| Name | Description |
|---|---|
| Collider 1 | |
| Collider 2 |
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("Get Ignore Collision")]
[Category("Physics 3D/Physics/Get Ignore Collision")]
[Description("Compares the Get Ignore Collision static method of Physics class to another value")]
[Image(typeof(IconPhysics), ColorTheme.Type.Lime)]
[Parameter("Collider 1")]
[Parameter("Collider 2")]
[Serializable]
public class GenConditionBool_Physics_CheckGetIgnoreCollision_2 : Condition
{
[SerializeField] private GetGameObject m_Collider1 = new GetGameObject();
[SerializeField] private GetGameObject m_Collider2 = new GetGameObject();
protected override string GetTitle(GameObject source)
{
string className = TextUtils.ThemeAsKeyword("Physics");
string method = TextUtils.ThemeAsKeyword("Get Ignore Collision");
return $"{className} {method} ({this.m_Collider1}, {this.m_Collider2})";
}
protected override bool Run(Args args)
{
bool value = Physics.GetIgnoreCollision(
(Collider) this.m_Collider1.Get<Collider>(args),
(Collider) this.m_Collider2.Get<Collider>(args)
);
return value;
}
}
}