Difference between revisions of "Set Character Gravity (LogiX node)"
Jump to navigation
Jump to search
(Add info about impulse ownership) |
(Marked this version for translation) |
||
Line 18: | Line 18: | ||
+ | <!--T:6--> | ||
The <code>OnDone</code> output fires an impulse when the <code>Gravity</code> field value 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 <code>Gravity</code> field value 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. | ||
+ | <!--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. | 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. | ||
Revision as of 08:12, 15 February 2022
Set Character Gravity | ||
---|---|---|
Inputs | ||
Impulse | Apply | |
Float3 | Gravity | |
CharacterController | Character | |
Outputs | ||
Impulse | OnDone |
The Set Character Gravity node overwrites the Gravity
field value on the input Character
CharacterController (Component) with the input Gravity
vector.
Usage
The Gravity
input defaults to [0;0;0] which corresponds to no gravity.
The OnDone
output fires an impulse when the Gravity
field value 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.