execute store result score @s motion_x1 run data get entity @s Pos[0] 100
execute store result score @s motion_y1 run data get entity @s Pos[1] 100
execute store result score @s motion_z1 run data get entity @s Pos[2] 100

execute rotated as @p run tp @s ^ ^ ^1

execute store result score @s motion_x2 run data get entity @s Pos[0] 1000
execute store result score @s motion_y2 run data get entity @s Pos[1] 1000
execute store result score @s motion_z2 run data get entity @s Pos[2] 1000

tag @s add motion_added


execute store result entity @s Motion[0] double 0.1 run scoreboard players get @s motion_x2
execute store result entity @s Motion[1] double 0.1 run scoreboard players get @s motion_y2
execute store result entity @s Motion[2] double 0.1 run scoreboard players get @s motion_z2