예제 #1
0
파일: Draw.py 프로젝트: d11/rts
def drawCameraLookAtCheck (cameraPosition,pointToLookAt,up):
	"""this comes up often enough to warrant its own warning function"""
	view = pointToLookAt - cameraPosition
	perp = view.perpendicularComponent (up)
	
	# LP: is this a test for object equality or for containin data
	if (perp == vector.zero):
		SteerTest.printWarning ("LookAt: degenerate camera")
예제 #2
0
def drawCameraLookAtCheck(cameraPosition, pointToLookAt, up):
    """this comes up often enough to warrant its own warning function"""
    view = pointToLookAt - cameraPosition
    perp = view.perpendicularComponent(up)

    # LP: is this a test for object equality or for containin data
    if (perp == vector.zero):
        SteerTest.printWarning("LookAt: degenerate camera")
예제 #3
0
파일: Draw.py 프로젝트: d11/rts
def warnIfInUpdatePhase2(name):
    message= "use annotation (during simulation update, do not call %s)" % (name)
    SteerTest.printWarning (message);
예제 #4
0
def warnIfInUpdatePhase2(name):
    message = "use annotation (during simulation update, do not call %s)" % (
        name)
    SteerTest.printWarning(message)