Overview
A block that represents a motion based on a neural network (NN). Includes all movements related to walking, running, turns, face-heel turns, etc. for an NPC, both in free and danger states. For walking in free states, there are 2 walk options that the NPC may switch to using the "actions/npc/nn state" VS block.
in | The block will use a pose from the motion for further calculations. |
Outputs
Properties
There are no customizable properties in the block itself. Only the settings common to all NPCs in the field of motion variability can be configured (npc.lua file). The main idea here is that a little noise is mixed into the input of the neural network to get slightly varying results in the output. List of parameters for variability:
- var_body_angle, var_body_angle_lerp_in, var_body_angle_lerp_out: the deviation angle range of the body along the Y axis from the set direction and speed of approaching that value (lerp in)/moving away from it (lerp out).
- var_steps_body_angle: number of steps after which the body deviation along the Y axis is recalculated.
- var_move_angle, var_move_angle_lerp_in, var_move_angle_lerp_out: the deviation angle range of movement direction along the Y axis from the set direction and speed of approaching that value (lerp in)/moving away from it (lerp out).
- var_steps_move_angle: number of steps after which the movement direction deviation along the Y axis is recalculated.
- var_speed, var_speed_lerp_in, var_speed_lerp_out: the deviation range of the movement speed from the set value and speed of approaching that value (lerp in)/moving away from it (lerp out).
- var_steps_speed: the number of steps after which the speed deviation is recalculated..Â