Преглед на файлове

guiObjectView.setCameraRotation()

Added a new method to set the guiObjectView camera on it's orbit in relation to the object.
Kyrah Abattoir преди 12 години
родител
ревизия
9205561c96
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      Engine/source/T3D/guiObjectView.h

+ 4 - 0
Engine/source/T3D/guiObjectView.h

@@ -88,6 +88,7 @@ class GuiObjectView : public GuiTSCtrl
       
       F32 mMaxOrbitDist;
       F32 mMinOrbitDist;
+      EulerF mCameraRotation;
       
       ///
       F32 mOrbitDist;
@@ -245,6 +246,9 @@ class GuiObjectView : public GuiTSCtrl
       /// @param distance The distance to set the orbit to (will be clamped).
       void setOrbitDistance( F32 distance );
       
+      /// Sets the angle of the camera on it's orbit in relation to the object.
+      void setCameraRotation( const EulerF& rotation );
+      
       /// @}
       
       /// @name Lighting