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:
authorErwin Coumans <blender@erwincoumans.com>2008-09-29 07:09:03 +0400
committerErwin Coumans <blender@erwincoumans.com>2008-09-29 07:09:03 +0400
commit0b622fc07f1a19c4fbc72782f6000814b66b2088 (patch)
treea0cc270ca6238e42acb5845e1f735e07d9c55be8 /source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp
parent25fc47aaf2a7898b81eb4617a1cd877832d675c2 (diff)
added anisotropic friction support for Bullet. Both for static and dynamic objects
Diffstat (limited to 'source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp')
-rw-r--r--source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp b/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp
index e4c7e7f9317..68e0997aec0 100644
--- a/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp
+++ b/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp
@@ -1025,6 +1025,14 @@ void KX_ConvertBulletObject( class KX_GameObject* gameobj,
//need a bit of damping, else system doesn't behave well
ci.m_inertiaFactor = shapeprops->m_inertia/0.4f;//defaults to 0.4, don't want to change behaviour
+ ci.m_do_anisotropic = shapeprops->m_do_anisotropic;
+ ci.m_anisotropicFriction.setValue(shapeprops->m_friction_scaling[0],shapeprops->m_friction_scaling[1],shapeprops->m_friction_scaling[2]);
+
+ //smprop->m_do_fh = kxshapeprops->m_do_fh;
+ //smprop->m_do_rot_fh = kxshapeprops->m_do_rot_fh ;
+
+
+
///////////////////
ci.m_gamesoftFlag = objprop->m_gamesoftFlag;