Example #1
0
def draw(context, layout):
    dynamic.draw(context, layout)
    destroyable.draw(context, layout)
    row = layout.row()
    row.prop(context.object,
             "sss_gun_min_pitch",
             text="Minimum pitch (deg)")
    row = layout.row()
    row.prop(context.object,
             "sss_gun_max_pitch",
             text="Maximum pitch (deg)")
    row = layout.row()
    row.prop(context.object,
             "sss_gun_vel_pitch",
             text="Rotation velocity (deg/s)")
    row = layout.row()
    row.prop(context.object,
             "sss_gun_reload_time",
             text="Reload (s)")
    row = layout.row()
    row.prop(context.object,
             "sss_gun_bullet_obj",
             text="Bullet object")
    row = layout.row()
    row.prop(context.object,
             "sss_gun_bullet_vel",
             text="Bullet velocity")
    row = layout.row()
    row.prop(context.object,
             "sss_gun_smoke_obj",
             text="Smoke object")
def draw(context, layout):
    dynamic.draw(context, layout)
    destroyable.draw(context, layout)
    row = layout.row()
    row.prop(context.object, "sss_propeller_RPM", text="RPM")
    row = layout.row()
    row.prop(context.object, "sss_propeller_power", text="Engine power (MW)")
Example #3
0
def draw(context, layout):
    dynamic.draw(context, layout)
    destroyable.draw(context, layout)
    row = layout.row()
    row.prop(context.object, "sss_rudder_K", text="K")
    row = layout.row()
    row.prop(context.object,
             "sss_rudder_max_angle",
             text="Maximum angle (deg)")
Example #4
0
def draw(context, layout):
    dynamic.draw(context, layout)
    row = layout.row()
    row.prop(context.object, "sss_bullet_shell", text="shell (kg)")
    row = layout.row()
    row.prop(context.object, "sss_bullet_explosion", text="Explosion object")
    row = layout.row()
    row.prop(context.object,
             "sss_bullet_water",
             text="Water explosion object.")
Example #5
0
def draw(context, layout):
    dynamic.draw(context, layout)
    destroyable.draw(context, layout)
    row = layout.row()
    row.prop(context.object,
             "sss_propeller_RPM",
             text="RPM")
    row = layout.row()
    row.prop(context.object,
             "sss_propeller_power",
             text="Engine power (MW)")
Example #6
0
def draw(context, layout):
    dynamic.draw(context, layout)
    row = layout.row()
    row.prop(context.object,
             "sss_bullet_shell",
             text="shell (kg)")
    row = layout.row()
    row.prop(context.object,
             "sss_bullet_explosion",
             text="Explosion object")
    row = layout.row()
    row.prop(context.object,
             "sss_bullet_water",
             text="Water explosion object.")
Example #7
0
def draw(context, layout):
    dynamic.draw(context, layout)
    destroyable.draw(context, layout)
    row = layout.row()
    row.prop(context.object,
             "sss_turret_min_angle",
             text="Minimum angle (deg)")
    row = layout.row()
    row.prop(context.object,
             "sss_turret_max_angle",
             text="Maximum angle (deg)")
    row = layout.row()
    row.prop(context.object,
             "sss_turret_vel_angle",
             text="Rotation velocity (deg/s)")
Example #8
0
def draw(context, layout):
    dynamic.draw(context, layout)
    destroyable.draw(context, layout)
    row = layout.row()
    row.prop(context.object,
             "sss_turret_min_angle",
             text="Minimum angle (deg)")
    row = layout.row()
    row.prop(context.object,
             "sss_turret_max_angle",
             text="Maximum angle (deg)")
    row = layout.row()
    row.prop(context.object,
             "sss_turret_vel_angle",
             text="Rotation velocity (deg/s)")
Example #9
0
def draw(context, layout):
    dynamic.draw(context, layout)

    row = layout.row()
    obj = context.object
    vols_z, vols_v = getVolumesFromObject(obj)
    vol = float(obj.game.properties['real_mass'].value) / 1025.0
    z = -getZ(vol, (vols_z, vols_v))
    row.label('z = {0:.3f} m'.format(z))

    row = layout.row()
    row.prop(context.object, "sss_floating_gmt", text="GMT (m)")
    row = layout.row()
    row.prop(context.object, "sss_floating_gml", text="GML (m)")

    destroyable.draw(context, layout)
Example #10
0
def draw(context, layout):
    dynamic.draw(context, layout)
    destroyable.draw(context, layout)
    row = layout.row()
    row.prop(context.object, "sss_gun_min_pitch", text="Minimum pitch (deg)")
    row = layout.row()
    row.prop(context.object, "sss_gun_max_pitch", text="Maximum pitch (deg)")
    row = layout.row()
    row.prop(context.object,
             "sss_gun_vel_pitch",
             text="Rotation velocity (deg/s)")
    row = layout.row()
    row.prop(context.object, "sss_gun_reload_time", text="Reload (s)")
    row = layout.row()
    row.prop(context.object, "sss_gun_bullet_obj", text="Bullet object")
    row = layout.row()
    row.prop(context.object, "sss_gun_bullet_vel", text="Bullet velocity")
    row = layout.row()
    row.prop(context.object, "sss_gun_smoke_obj", text="Smoke object")
Example #11
0
def draw(context, layout):
    dynamic.draw(context, layout)

    row = layout.row()
    obj = context.object
    vols_z, vols_v = getVolumesFromObject(obj)
    vol = float(obj.game.properties['real_mass'].value) / 1025.0
    z = -getZ(vol, (vols_z, vols_v))
    row.label('z = {0:.3f} m'.format(z))

    row = layout.row()
    row.prop(context.object,
             "sss_floating_gmt",
             text="GMT (m)")
    row = layout.row()
    row.prop(context.object,
             "sss_floating_gml",
             text="GML (m)")

    destroyable.draw(context, layout)