All pastes #265847 Raw Edit

squeakypants

public text v1 · immutable
·published 2006-12-03 18:18 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
else var.roll = ((Wiimote.RawForceX + 13)/29)*-90
var.roll = 180 - var.roll
if (var.roll > 180) then
	var.roll = (360 - var.roll)*-1
debug = var.roll