コード例 #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)
コード例 #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)
コード例 #3
0
def GetRotateAngle():
    return NBGM_SCRIPT_CONTEX.queryInfo('GetRotateAngle')
コード例 #4
0
def GetTiltAngle():
    return NBGM_SCRIPT_CONTEX.queryInfo('GetTiltAngle')
コード例 #5
0
def GetCameraHeight():
    return NBGM_SCRIPT_CONTEX.queryInfo('GetCameraHeight')
コード例 #6
0
def GetViewPointDistance():
    return NBGM_SCRIPT_CONTEX.queryInfo('GetViewPointDistance')