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
 
Fixed link.
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
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.  
{{#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 [[ProtoFlux:Apply Character Force|force]] node from a physics perspective.  


Impulse is the change in momentum of an object, or otherwise an "normalized" version of force.
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 [[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.
[[Category:ProtoFlux:Physics]]

Latest revision as of 09:58, 13 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.