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>2006-12-03 01:25:47 +0300
committerErwin Coumans <blender@erwincoumans.com>2006-12-03 01:25:47 +0300
commit438d114f1ac3c8eaa4c1d9d8ffa31271a51c85e6 (patch)
tree030c8c62a46ed0b3a527eb7cc25e277e303c59f5 /source/gameengine/Ketsji/KX_MotionState.cpp
parent08ef0d346653bbe746231fdd3c94b5b3313a84a5 (diff)
- GEadded VSYNC for Mac OS X swapbuffers (can be easily undone by commenting out the #define WAIT_FOR_VSYNC 1
- GEdon't crash when attempting to add constraint on game objects without physics controller - GEimproved some physics -> graphics synchronization issues - small experiment with game engine timing to smooth framerate/reduce tearing
Diffstat (limited to 'source/gameengine/Ketsji/KX_MotionState.cpp')
-rw-r--r--source/gameengine/Ketsji/KX_MotionState.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_MotionState.cpp b/source/gameengine/Ketsji/KX_MotionState.cpp
index 6de9cf3b36e..cd01c0466cd 100644
--- a/source/gameengine/Ketsji/KX_MotionState.cpp
+++ b/source/gameengine/Ketsji/KX_MotionState.cpp
@@ -73,7 +73,7 @@ void KX_MotionState::getWorldOrientation(float& quatIma0,float& quatIma1,float&
void KX_MotionState::setWorldPosition(float posX,float posY,float posZ)
{
m_node->SetLocalPosition(MT_Point3(posX,posY,posZ));
-
+ m_node->SetWorldPosition(MT_Point3(posX,posY,posZ));
}
void KX_MotionState::setWorldOrientation(float quatIma0,float quatIma1,float quatIma2,float quatReal)
@@ -85,6 +85,8 @@ void KX_MotionState::setWorldOrientation(float quatIma0,float quatIma1,float qua
orn[3] = quatReal;
m_node->SetLocalOrientation(orn);
+ m_node->SetWorldOrientation(orn);
+
}
void KX_MotionState::calculateWorldTransformations()