def getseatplacement(id, mode=AVATAR, isChild = False):
	facingInwards = False
	
	if id[0] == 'l':
		z = ZL
	elif id[0] == 'r':
		z = ZR
	
	seatIndex = int(id[1]) - 1
	if id[0] == 'l':
		if seatIndex < 5:
			x = XL1 + seatIndex * DXL
			y = Y
		else:
			x = X_BACKROW
			y = Y_BACKROW
	else:
		if seatIndex < 3:
			x = XRI[seatIndex]
			y = Y
			facingInwards = True
		elif seatIndex < 5:
			x = XRF[seatIndex-3]
			y = Y
			
		else:
			x = X_BACKROW
			y = Y_BACKROW
			
	if isChild:
		x = x + 0.3
		y = y + 0.75
		z = z - 1.6
	
	pos = [x, y, z]
	if mode == MAINVIEW: pos = add(pos, MAINVIEW_SEAT_DIFF)
	
	yaw = 0 if facingInwards else 90
	pitch = 180 if isChild else 0
	roll = 90 if isChild else 0
	ori = [yaw,0,0]
	
	return pos, ori
def getMainviewSeat(id):
	seat = getseat(id)
	return add(seat, MAINVIEW_SEAT_DIFF)