So far I have condensed the code into several lines that are easy to understand. The only thing I do not understand is one command, which is the " *|var.wmSpeed| " reference. However, I understand what the var.wmSpeed means.
Could someone help me understand this? I'm trying to find code alternatives in FreePIE, but this seems to be the last code I cannot interpret.
Code: Select all
var.wmSpeedYaw = wiimote.MotionPlus.RawYawSpeed/ 120
var.wmSpeedPitch = wiimote.MotionPlus.RawPitchSpeed/120
var.wmSpeed = [ var.wmSpeedYaw, -var.wmSpeedPitch ]
[ var.wmRollFix_x, var.wmRollFix_y ] = [ sin(atan2(var.wmSpeedYaw, -var.wmSpeedPitch)), cos(atan2(var.wmSpeedYaw, -var.wmSpeedPitch)) ] * |var.wmSpeed|