Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_game.py
| Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| sub.prop(game, "velocity_max", text="Maximum") | sub.prop(game, "velocity_max", text="Maximum") | ||||
| col = split.column() | col = split.column() | ||||
| col.label(text="Damping:") | col.label(text="Damping:") | ||||
| sub = col.column(align=True) | sub = col.column(align=True) | ||||
| sub.prop(game, "damping", text="Translation", slider=True) | sub.prop(game, "damping", text="Translation", slider=True) | ||||
| sub.prop(game, "rotation_damping", text="Rotation", slider=True) | sub.prop(game, "rotation_damping", text="Rotation", slider=True) | ||||
| if physics_type == 'RIGID_BODY': | |||||
| layout.separator() | layout.separator() | ||||
| split = layout.split() | split = layout.split() | ||||
| col = split.column() | col = split.column() | ||||
| col.label(text="Lock Translation:") | col.label(text="Lock Translation:") | ||||
| col.prop(game, "lock_location_x", text="X") | col.prop(game, "lock_location_x", text="X") | ||||
| col.prop(game, "lock_location_y", text="Y") | col.prop(game, "lock_location_y", text="Y") | ||||
| ▲ Show 20 Lines • Show All 677 Lines • Show Last 20 Lines | |||||