This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dragengine:modules:dragonscript:behavior_playerinputturn [2025/05/07 15:01] – dragonlord | dragengine:modules:dragonscript:behavior_playerinputturn [2025/05/12 15:39] (current) – dragonlord | ||
|---|---|---|---|
| Line 52: | Line 52: | ||
| |right.toggle| |Toggle right turn key pressed| | |right.toggle| |Toggle right turn key pressed| | ||
| |speed|float|Turn speed in m/s| | |speed|float|Turn speed in m/s| | ||
| - | |analog|float|Analog | + | |analog|float, '' |
| - | |analog.sticky|float|Sticky | + | |analog.sticky|float, '' |
| |canTurn|'' | |canTurn|'' | ||
| |canTurn.toggle| |Toggle can turn| | |canTurn.toggle| |Toggle can turn| | ||
| Line 61: | Line 61: | ||
| <action name=' | <action name=' | ||
| < | < | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ===== playerInputTurn.update ===== | ||
| + | |||
| + | Update player input turn. | ||
| + | |||
| + | ^Parameter^Value^Description^ | ||
| + | |locomotion| |Update locomotion applying calculateLookHorizontal() and calculateLookVertical() to [[behavior_locomotion|ECBehaviorLocomotion]].applyLookAround()| | ||
| + | |||
| + | This is an example of using this action: | ||
| + | <code xml> | ||
| + | <action name=' | ||
| + | < | ||
| </ | </ | ||
| </ | </ | ||