All pastes #265788 Raw Edit

squeakypants

public text v1 · immutable
·published 2006-12-03 17:22 UTC
rendered paste body
if (Wiimote.RawForceY + 4 < 0) then
	if (Wiimote.RawForceX + 8 = 0) then
		var.roll = 180
	else if (Wiimote.RawForceX + 8 < 0) then
		var.roll = (((Wiimote.RawForceX + 8)/28)*-90)+90
	else var.roll = (((Wiimote.RawForceX + 8)/28)*-90)-90
else var.roll = ((Wiimote.RawForceX + 8)/28)*-90
debug = var.roll