Problem with my game script...it wont move

I am tring to so some fancy math for roations and movement…everything seems to work but nothing moves or rotates…


from math import *
import copy, GameLogic

#Cardioid Catacaustic
class empty:
	owner	= GameLogic.getCurrentController().getOwner()
	x		= 0.00 
	y		= 0.00 
	z 		= 0.00 
	loc		= []
	t		= owner.time # timer is set in props of object

for n in range(0, 1):
	empty.x = 0.5*(2.00+3.00*cos(empty.t)-cos(3.00*empty.t))
	empty.y = pow(sin(empty.t), 3)
	empty.z = empty.t*0.25
	empty.loc = empty.owner.setOrientation = [empty.x, empty.y, empty.z]
	print empty.loc

setOrientation needs a matrix, this will work:


from math import * 
import GameLogic

# creates full 3D rotation matrix
# rx, ry, rz angles in radians
def makeRotMtx3D(rx, ry, rz):
	A, B = sin(rx), cos(rx)
	C, D = sin(ry), cos(ry)
	E, F = sin(rz), cos(rz)
	AC, BC = A*C, B*C
	return [[D*F, 	   D*E, 	 -C],
			[AC*F-B*E, AC*E+B*F, A*D],
			[BC*F+A*E, BC*E-A*F, B*D]]

#Cardioid Catacaustic
class empty:
	owner	= GameLogic.getCurrentController().getOwner()
	x,y,z	= 0.0, 0.0, 0.0 
	loc		= [] 
	t		= owner.time # timer is set in props of object

for n in range(0, 1): 
	empty.x = 0.5*(2.0+3.0*cos(empty.t)-cos(3.0*empty.t))
	empty.y = pow(sin(empty.t), 3)
	empty.z = empty.t*0.25
	empty.loc = empty.owner.setOrientation(makeRotMtx3D(empty.x, empty.y, empty.z))
	print empty.loc