Skip to content

Commit

Permalink
Merge pull request #49 from xavco63/master
Browse files Browse the repository at this point in the history
Some addition and correction to the logic nodes docs
  • Loading branch information
IzaZed authored Dec 3, 2024
2 parents cea6475 + 480f5e2 commit 7ca8e52
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 27 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,5 @@ manuals that are pointed out above.
- Ulysse Martin (youle31)
- Xavier Cho (mysticfall)
- (aum7)
- Zazoucoco0 (xavco63)
- You!
2 changes: 1 addition & 1 deletion source/manual/logic_nodes/events/on_init.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ Outputs
++++++++++++++++++++++++++++++

Out
*True* if node performed successfully, else *False*.
*True* on the first frame, when the scene is initialized
2 changes: 1 addition & 1 deletion source/manual/logic_nodes/events/on_value_changed.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Parameters
++++++++++++++++++++++++++++++

Initialize
todo
If checked, the node will ignore the change from *None* to the first value pulled from the input socket

Inputs
++++++++++++++++++++++++++++++
Expand Down
2 changes: 1 addition & 1 deletion source/manual/logic_nodes/game/load_game.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Inputs
++++++++++++++++++++++++++++++

Condition
Input condition.
The condition for this node to activate.

Slot
Index of this save file.
Expand Down
2 changes: 1 addition & 1 deletion source/manual/logic_nodes/game/quit_game.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ Inputs
++++++++++++++++++++++++++++++

Condition
Input condition which must be fulfilled for node to activate.
The condition for this node to activate.
2 changes: 1 addition & 1 deletion source/manual/logic_nodes/game/restart_game.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Inputs
++++++++++++++++++++++++++++++

Condition
Input condition required for node to activate.
The condition for this node to activate.

Outputs
++++++++++++++++++++++++++++++
Expand Down
4 changes: 2 additions & 2 deletions source/manual/logic_nodes/game/save_game.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ Inputs
++++++++++++++++++++++++++++++

Condition
Input condition required for node to activate.
The condition for this node to activate.

Slot
Index of this save file.
Index of this save file. If a save file already exists at this index, it will be overwritten.

Outputs
++++++++++++++++++++++++++++++
Expand Down
3 changes: 2 additions & 1 deletion source/manual/logic_nodes/input/gamepad/gamepad_button.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ Button
Which button/trigger is monitored.

Input Type
Input detection mode.
Input detection mode. ``Tap`` is activated the first frame that the key is pressed, ``Down``
is activated while the key is pressed and ``Up`` is activated once the last frame the key is pressed.

Inputs
++++++++++++++++++++++++++++++
Expand Down
6 changes: 3 additions & 3 deletions source/manual/logic_nodes/input/gamepad/gamepad_look.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Index
The index of the controller to poll.

Sensitivity
Multiplier for translating mouse movement to object rotation.
Multiplier for translating controller stick movement to object rotation.

Exponent
Exponent for fine-tuning the stick behavior.
Expand All @@ -53,10 +53,10 @@ Cap Up/Down
Limit the head object rotation on its local X/Y axis.

Y Limits
Limits for the head object's local X/Y rotaion (Vec2). Visible if Cap Up/Down is selected.
Limits for the head object local X/Y rotation (Vec2). Visible if Cap Up/Down is selected.

Threshold
Ignore stick values under this threshold.
Ignore stick values under this threshold. Used to avoid stick drift.

Outputs
++++++++++++++++++++++++++++++
Expand Down
4 changes: 2 additions & 2 deletions source/manual/logic_nodes/input/gamepad/gamepad_sticks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ Sensitivity
Multiplier for the axis values.

Threshold
Dead-zone for the stick.
Dead-zone for the stick. Used to avoid stick drift.

Outputs
++++++++++++++++++++++++++++++

Vector
Stick values as vector `(X, Y, 0)`.
Stick values as vector `(X, Y, 0)` (Vector3).
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Right
Force with which to rotate the weight in the right handle.

Time
Vibrate for this many seconds.
How many seconds the vibration has to play.

Outputs
++++++++++++++++++++++++++++++
Expand Down
3 changes: 2 additions & 1 deletion source/manual/logic_nodes/input/keyboard/keyboard_key.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ Parameters
++++++++++++++++++++++++++++++

Input Type
Input detection mode.
Input detection mode. ``Tap`` is activated the first frame that the key is pressed, ``Down``
is activated while the key is pressed (even the first frame) and ``Up`` is activated once the last frame the key is pressed.

Inputs
++++++++++++++++++++++++++++++
Expand Down
6 changes: 3 additions & 3 deletions source/manual/logic_nodes/input/mouse/mouse_look.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Front
Look direction of the *Head* Object. If set to Y, the rotational axis will be X and vice versa.

Center Mouse
todo
If checked, the mouse cursor will be centered in the game window.

Inputs
++++++++++++++++++++++++++++++
Expand All @@ -44,13 +44,13 @@ Cap Left/Right
Limit the body objects rotation on its local Z axis.

X Limits
The limits for the body objects local Z rotation (Vector2). Only shown if Cap Left/Right is selected.
The limits for the body object's local Z rotation (Vector2). Only shown if Cap Left/Right is selected.

Cap Up/Down
Limit the head object's rotation on its local X/Y axis.

Y Limits
The limits for the head object's local X/Y rotaion (Vectpr2). Only shown if Cap Up/Down is selected.
The limits for the head object's local X/Y rotation (Vector2). Only shown if Cap Up/Down is selected.

Smoothing
Use linear interpolation to slowly adapt the object transformation to mouse movement.
Expand Down
16 changes: 9 additions & 7 deletions source/manual/logic_nodes/input/mouse/mouse_status.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,28 @@
Mouse Status
==============================

Gives informations about the mouse cursor and wheel scroll.

Outputs
++++++++++++++++++++++++++++++

Position
todo
The XY position of the cursor from the top left corner of the game window (Vector2).

Movement
todo
The XY movement of the cursor on the game window comparing to previous frame position (Vector2).

X Position
todo
The X position of the cursor from the top left corner of the game window.

Y Position
todo
The Y position of the cursor from the top left corner of the game window.

X Movement
todo
The X movement of the cursor on the game window compared to previous frame position.

Y Movement
todo
The Y movement of the cursor on the game window compared to previous frame position.

Wheel Difference
todo
*1* if the wheel is scrolled up and *-1* if the wheel is scrolled down, else *0*.
4 changes: 2 additions & 2 deletions source/manual/logic_nodes/input/mouse/set_cursor_position.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
Set Cursor Position
==============================

Places the mouse cursor on corresponding coordinates between (0, 0) and (1, 1) on the screen.
Places the mouse cursor on corresponding coordinates between (0, 0) and (1, 1) on the game window from the top left corner.

Inputs
++++++++++++++++++++++++++++++

Condition
Input condition.
Input condition needed for node to activate.

Screen X
Horizontal cursor position between 0 and 1.
Expand Down

0 comments on commit 7ca8e52

Please sign in to comment.