Difference between revisions of "Set Character Velocity (LogiX node)"

From Neos Wiki
Jump to navigation Jump to search
(Mark stub)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<languages></languages>
 
<languages></languages>
 
<translate>
 
<translate>
{{stub}}
+
<!--T:1-->
The '''Set Character Velocity''' node.
+
{{Infobox Logix Node
 +
| Name = Set Character Velocity
 +
| Image =[[File: SetCharacterVelocityNode.png | noframe | 128px | 'Set Character Velocity' LogiX node ]]
 +
| Input0Type = Impulse | Input0Name = Apply
 +
| Input1Type = Float3 | Input1Name = Velocity
 +
| Input2Type = CharacterController | Input2Name = Character
 +
| Output0Type = Impulse | Output0Name = OnDone
 +
}}
  
<!--[[File:|border|256px|right]]-->
+
<!--T:2-->
 +
The '''Set Character Velocity''' node overwrites the linear velocity of the input <code>Character</code> [[CharacterController (Component)]] with the input <code>Velocity</code> when an impulse is received at <code>Apply</code>.
  
== Inputs & Outputs ==
+
== Usage == <!--T:3-->
{| class="wikitable"
+
The <code>Velocity</code> default is [0;0;0].
|+Inputs
 
|-
 
| Color
 
| Label
 
| Type
 
|-
 
| style="background-color:{{Impulse-color}}" |
 
| Apply
 
| Impulse
 
|-
 
| style="background-color:{{Float-color}}" |
 
| Gravity
 
| Float3
 
|-
 
| style="background-color:{{CharacterController-color}}" |
 
| Character
 
| CharacterController
 
|}
 
  
{| class="wikitable"
 
|+Outputs
 
|-
 
| Color
 
| Label
 
| Type
 
|-
 
| style="background-color:{{Impulse-color}}" |
 
| OnDone
 
| Impulse
 
|}
 
  
== Usage ==
+
<!--T:6-->
 +
The <code>OnDone</code> output fires an impulse when the linear velocity of the input <code>Character</code> has been set as a result of an impulse received at <code>Apply</code>. No impulse will be fired if there is no valid <code>Character</code> input.
  
== Examples ==
 
  
== Node Menu ==
+
<!--T:7-->
 +
Note that for the input <code>CharacterController</code> to be affected, the impulse received at <code>Apply</code> must be owned by the <code>SimulatingUser</code> set in the referenced CharacterController component.  For an explanation, see [https://github.com/Neos-Metaverse/NeosPublic/issues/3197#issuecomment-944923044 Frooxius' comment on GitHub]
 +
 
 +
== Examples == <!--T:4-->
 +
 
 +
== Node Menu == <!--T:5-->
 
</translate>
 
</translate>
 
+
[[Category:LogiX{{#translation:}}|Set Character Velocity]]
[[Category:LogiX|Set Character Velocity]]
+
[[Category:LogiX:Physics{{#translation:}}|Set Character Velocity]]
[[Category:LogiX: Physics|Set Character Velocity]]
 
 
{{:NodeMenu-Physics}}
 
{{:NodeMenu-Physics}}

Latest revision as of 03:54, 20 February 2022

Other languages:
English • ‎日本語
Set Character Velocity
'Set Character Velocity' LogiX node
Inputs
  Impulse Apply
  Float3 Velocity
  CharacterController Character
Outputs
  Impulse OnDone

The Set Character Velocity node overwrites the linear velocity of the input Character CharacterController (Component) with the input Velocity when an impulse is received at Apply.

Usage

The Velocity default is [0;0;0].


The OnDone output fires an impulse when the linear velocity of the input Character has been set as a result of an impulse received at Apply. No impulse will be fired if there is no valid Character input.


Note that for the input CharacterController to be affected, the impulse received at Apply must be owned by the SimulatingUser set in the referenced CharacterController component. For an explanation, see Frooxius' comment on GitHub

Examples

Node Menu

Physics
Back Apply Character Force Apply Character Impulse As Character Controller Character Controller User Character Gravity Character Ground Collider
Character Linear Velocity Find Character Controller Hit UV Coordinate Is Character Controller Is Character On Ground On Collision End On Collision Start
On Collision Stay Raycast One Raycaster Set Character Gravity Set Character Velocity