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

From Neos Wiki
Jump to navigation Jump to search
(Update page with actually useful information)
(Add info about impulse ownership)
Line 19: Line 19:
  
 
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.
 
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.
 +
 +
 +
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.
  
 
== Examples == <!--T:4-->
 
== Examples == <!--T:4-->

Revision as of 09:39, 8 May 2021

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.

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