ActionReaction screenshot 1
S

Publisher

srcoloma

ActionReaction

Tools
Interaction Collision Physics Signals Components Mechanics GDScript Customizable

ideal for interactions 1-1 Introduce 2 nodes "Action" and "Reaction", where "Action" is added to physical bodies like rigidbodies or even raycasts. It abstracts or adds, if the node requires it, "body_entered", "is_colliding", and "body_exited" signals into "enter_act", "inside_act", and "exit_act" signals, respectively. However, it communicates this to a specific-named "Reaction" node, meaning that one action has one reaction

Action-Reaction

In an interaction, [Action] is the node that will call or initiate the interaction, therefore, it must be a child of a [CollisionObject] such as an Area or a [RayCast] or a [RigidBody]. This serves for both 3D and 2D and [Reaction] is the node that receives an action.

Action Node

This node will trigger the [enter_act] signal when an interaction begins, [inside_act] while it is within an interaction, and [exit_act] when it leaves the interaction. Conversely, the node named [reaction] will have its own signals [enter_react], [inside_react], and [exit_react], respectively.

Reaction Node

This node will trigger the [enter_react] signal when an interaction begins, [inside_react] while it is within an interaction, and [exit_react] when it leaves the interaction.