Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-02-07 14:42:49 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-07 14:42:49 +0300
commita17d81cabfe0f83c944e779201eaf6310cc96bbe (patch)
treeefe62fd6d99fc20b04f6da4fb082d200efe00036 /release
parentfd422e58a890f827c03609fda6308040e5b48b7a (diff)
add access to radius for game objects (static objects can have radius) as well as anisotropic friction.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/ui/properties_game.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/release/scripts/ui/properties_game.py b/release/scripts/ui/properties_game.py
index cb0dbc03912..65b511a054e 100644
--- a/release/scripts/ui/properties_game.py
+++ b/release/scripts/ui/properties_game.py
@@ -72,7 +72,6 @@ class PHYSICS_PT_game_physics(PhysicsButtonsPanel, bpy.types.Panel):
col = split.column()
sub = col.column()
- sub.active = (game.physics_type == 'RIGID_BODY')
sub.prop(game, "use_anisotropic_friction")
subsub = sub.column()
subsub.active = game.use_anisotropic_friction
@@ -149,6 +148,22 @@ class PHYSICS_PT_game_physics(PhysicsButtonsPanel, bpy.types.Panel):
col.prop(game, "use_ghost")
col.prop(ob, "hide_render", text="Invisible")
+ layout.separator()
+
+ split = layout.split()
+
+ col = split.column()
+ col.label(text="Attributes:")
+ col.prop(game, "radius")
+
+ col = split.column()
+ sub = col.column()
+ sub.prop(game, "use_anisotropic_friction")
+ subsub = sub.column()
+ subsub.active = game.use_anisotropic_friction
+ subsub.prop(game, "friction_coefficients", text="", slider=True)
+
+
elif game.physics_type in ('SENSOR', 'INVISIBLE', 'NO_COLLISION', 'OCCLUDE'):
layout.prop(ob, "hide_render", text="Invisible")