Class OnJointBreak2D
Called when a joint attached to the same game object broke.
Inheritance
Implements
Inherited Members
Namespace: Unity.VisualScripting
Assembly: Unity.VisualScripting.Flow.dll
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, IAnalyticsIdentifiable, IGraphEventListener
Properties
MessageListenerType
Declaration
public override Type MessageListenerType { get; }
Property Value
Type | Description |
---|---|
Type |
Overrides
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 |
---|---|
Value |
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 |
---|---|
Value |
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 |
---|---|
Value |
hookName
Declaration
protected override string hookName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
joint
The joint that broke.
Declaration
[DoNotSerialize]
public ValueOutput joint { get; }
Property Value
Type | Description |
---|---|
Value |
reactionForce
The reaction force of the joint that broke.
Declaration
[DoNotSerialize]
public ValueOutput reactionForce { get; }
Property Value
Type | Description |
---|---|
Value |
reactionTorque
The reaction torque of the joint that broke.
Declaration
[DoNotSerialize]
public ValueOutput reactionTorque { get; }
Property Value
Type | Description |
---|---|
Value |
Methods
AssignArguments(Flow, Joint2D)
Declaration
protected override void AssignArguments(Flow flow, Joint2D joint)
Parameters
Overrides
Definition()
Declaration
protected override void Definition()