Exemplo n.º 1
0
def RotateCamera(delta_angle, duration, repeat, tm = 0.0):
    if repeat == 0 or duration <= 0:
        return
    if repeat < 0:
        repeat = IFINIT_LOOP_NUM
    oldValue = [NBGM_SCRIPT_CONTEX.queryInfo('GetRotateAngle')]
    newValue = [oldValue[0] + delta_angle]
    action = [SetRotateAngle]
    __start_animation__(oldValue, newValue, duration, repeat, tm, action)
Exemplo n.º 2
0
def ZoomCamera(scale, duration, repeat, tm = 0.0):
    if scale <= 0 or repeat == 0 or duration <= 0:
        return
    if repeat < 0:
        repeat = IFINIT_LOOP_NUM
    oldValue = [NBGM_SCRIPT_CONTEX.queryInfo('GetViewPointDistance')]
    newValue = [oldValue[0]*scale]
    action = [SetViewPointDistance]
    __start_animation__(oldValue, newValue, duration, repeat, tm, action)
Exemplo n.º 3
0
def GetRotateAngle():
    return NBGM_SCRIPT_CONTEX.queryInfo('GetRotateAngle')
Exemplo n.º 4
0
def GetTiltAngle():
    return NBGM_SCRIPT_CONTEX.queryInfo('GetTiltAngle')
Exemplo n.º 5
0
def GetCameraHeight():
    return NBGM_SCRIPT_CONTEX.queryInfo('GetCameraHeight')
Exemplo n.º 6
0
def GetViewPointDistance():
    return NBGM_SCRIPT_CONTEX.queryInfo('GetViewPointDistance')