Class OnJointBreak2D
Called when a joint attached to the same game object broke.
Inheritance
OnJointBreak2D
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Events/Physics 2D")]
public sealed class OnJointBreak2D : GameObjectEventUnit<Joint2D>, IGraphElementWithData, IGraphEventHandler<Joint2D>, IGameObjectEventUnit, IEventUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IGraphEventListener
Properties
breakForce
The force that needs to be applied for the joint that broke to break.
Declaration
[DoNotSerialize]
public ValueOutput breakForce { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
breakTorque
The torque that needs to be applied for the joint that broke to break.
Declaration
[DoNotSerialize]
public ValueOutput breakTorque { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
connectedBody
The 2D rigidbody to which the other end of the joint is attached (ie, the object without the joint component).
Declaration
[DoNotSerialize]
public ValueOutput connectedBody { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
hookName
Declaration
protected override string hookName { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
Unity.VisualScripting.GameObjectEventUnit<UnityEngine.Joint2D>.hookName
joint
The joint that broke.
Declaration
[DoNotSerialize]
public ValueOutput joint { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
MessageListenerType
Declaration
public override Type MessageListenerType { get; }
Property Value
Type | Description |
---|---|
Type |
Overrides
Unity.VisualScripting.GameObjectEventUnit<UnityEngine.Joint2D>.MessageListenerType
reactionForce
The reaction force of the joint that broke.
Declaration
[DoNotSerialize]
public ValueOutput reactionForce { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
reactionTorque
The reaction torque of the joint that broke.
Declaration
[DoNotSerialize]
public ValueOutput reactionTorque { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
Methods
AssignArguments(Flow, Joint2D)
Declaration
protected override void AssignArguments(Flow flow, Joint2D joint)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow | |
Joint2D | joint |
Overrides
Unity.VisualScripting.EventUnit<UnityEngine.Joint2D>.AssignArguments(Unity.VisualScripting.Flow, UnityEngine.Joint2D)
Definition()
Declaration
protected override void Definition()
Overrides
Unity.VisualScripting.GameObjectEventUnit<UnityEngine.Joint2D>.Definition()