All pastes #265849 Raw Edit

squeakypants

public text v1 · immutable
·published 2006-12-03 18:20 UTC
rendered paste body
if (Wiimote.RawForceY - 9 > 0) then
	if (Wiimote.RawForceX + 13 = 0) then
		var.roll = 180
	else if (Wiimote.RawForceX + 13 < 0) then
		var.roll = (((Wiimote.RawForceX + 13)/29)*-90)+90
	else var.roll = (((Wiimote.RawForceX + 13)/29)*-90)-90
		end if
else var.roll = ((Wiimote.RawForceX + 13)/29)*-90
	end if
var.roll = 180 - var.roll
if (var.roll > 180) then
	var.roll = (360 - var.roll)*-1
	end if
debug = var.roll