ProtoFlux:Apply Character Impulse: Difference between revisions

From Resonite Wiki
Very rough start to this node, I wanted this to be documented because it bugged me how much I looked this up. Thank you Yosh and HYPER_ZEN for the information/discussion
 
Added visuals and added the input/outputs of this page.
Line 1: Line 1:
{{#Invoke:ProtoFlux|GenerateUI
|Name=Apply Character Impulse
|Category=Physics
|Inputs=
[
{"Name":"*", "Type":"Call"},
{"Name":"Impulse", "Type":"float3"},
{"Name":"Character", "Type":"CharacterController"},
{"Name":"IgnoreMass", "Type":"bool"}
]
|Outputs=
[
{"Name":"Next", "Type":"Continuation"}
]
|}}
Applies a [[wikipedia:Impulse_(physics)|impulse]] to a character controller, impulses are similar but different from the [[Apply Character Force|force]] node from a physics perspective.  
Applies a [[wikipedia:Impulse_(physics)|impulse]] to a character controller, impulses are similar but different from the [[Apply Character Force|force]] node from a physics perspective.  


Line 4: Line 20:


In this case, the impulse node takes Force and applies it across [[ProtoFlux:Div Delta Time|dT]], making it framerate independent.
In this case, the impulse node takes Force and applies it across [[ProtoFlux:Div Delta Time|dT]], making it framerate independent.
== Inputs ==
=== Input ([[Impulses|Call]]) ===
Calls to trigger the character impulse.
=== Impulse ([[Type:float3|float3]]) ===
The direction to send the slot holding the character controller component.
=== Character ([[Component:CharacterController|Character Controller]]) ===
The reference itself to be sent in a direction.
=== Ignore Mass ([[Type:bool|bool]]) ===
The option to ignore mass in the character controller component when being sent in a direction.
== Outputs ==
=== Next ([[Impulses|Continuation]]) ===
Continues execution from here.

Revision as of 21:17, 12 April 2024

Apply Character Impulse
*
Next
Impulse
Character
IgnoreMass
Physics

Applies a impulse to a character controller, impulses are similar but different from the force node from a physics perspective.

Impulse is the change in momentum of an object, or otherwise an "normalized" version of force.

In this case, the impulse node takes Force and applies it across dT, making it framerate independent.

Inputs

Input (Call)

Calls to trigger the character impulse.

Impulse (float3)

The direction to send the slot holding the character controller component.

Character (Character Controller)

The reference itself to be sent in a direction.

Ignore Mass (bool)

The option to ignore mass in the character controller component when being sent in a direction.

Outputs

Next (Continuation)

Continues execution from here.