• R/O
  • SSH
  • HTTPS

gdx64: Commit


Commit MetaInfo

Revision276 (tree)
Time2020-01-20 04:52:56
Authorhgtterry

Log Message

GD19 Ogre 1.9 Camera Follower 190120

Change Summary

Incremental Difference

--- GD19_OSDN/GD19_OSDN.cpp (revision 275)
+++ GD19_OSDN/GD19_OSDN.cpp (revision 276)
@@ -593,7 +593,7 @@
593593 App->Cl_Scene_Data->Start_Scene();
594594
595595 // Check
596- App->Cl_Scene_Data->Cl_Object[1]->bt_body->setLinearVelocity(btVector3(15,0,15));
596+ App->Cl_Scene_Data->Cl_Object[1]->bt_body->setLinearVelocity(btVector3(35,0,35));
597597 App->Cl19_Ogre->OgreListener->_desiredVelocity = App->Cl_Scene_Data->Cl_Object[1]->bt_body->getLinearVelocity().length();
598598 }
599599
--- GD19_OSDN/GD19_OgreListener.cpp (revision 275)
+++ GD19_OSDN/GD19_OgreListener.cpp (revision 276)
@@ -124,6 +124,9 @@
124124 if (currentVelocty < _desiredVelocity)
125125 {
126126 currentVelocityDirection *= _desiredVelocity / currentVelocty;
127+
128+ currentVelocityDirection.setY(0);
129+
127130 App->Cl_Scene_Data->Cl_Object[1]->bt_body->setLinearVelocity(currentVelocityDirection);
128131 }
129132
--- GD19_OSDN/GD_ImGui.cpp (revision 275)
+++ GD19_OSDN/GD_ImGui.cpp (revision 276)
@@ -279,7 +279,7 @@
279279
280280
281281 btVector3 AngleFactor;
282- AngleFactor = App->Cl_Scene_Data->Cl_Object[1]->bt_body->getLinearVelocity();
282+ AngleFactor = App->Cl_Scene_Data->Cl_Object[1]->bt_body->getAngularFactor();
283283 ImGui::Text("AngleFactor %.3f %.3f %.3f", AngleFactor.getX(), AngleFactor.getY(), AngleFactor.getZ());
284284
285285 // ------------------------------ X AngularFactor
@@ -382,8 +382,8 @@
382382 }
383383 }
384384
385- //App->Cl_Scene_Data->Cl_Object[1]->bt_body->setLinearVelocity(SetAxis);
386- App->Cl_Scene_Data->Cl_Object[1]->bt_body->setMassProps(0.02,btVector3(10,10,10));
385+ App->Cl_Scene_Data->Cl_Object[1]->bt_body->setAngularFactor(SetAxis);
386+ //App->Cl_Scene_Data->Cl_Object[1]->bt_body->setMassProps(0.02,btVector3(10,10,10));
387387
388388 }
389389
Show on old repository browser