Browse Source

Make GetCoordinateSystem() const and move it to the header.

Nicholas Farshidmehr 8 years ago
parent
commit
5b6b5ae9fa

+ 0 - 5
Source/Urho3D/Physics/RaycastVehicle.cpp

@@ -683,11 +683,6 @@ void RaycastVehicle::SetCoordinateSystem(const IntVector3& coordinateSystem)
     vehicleData_->SetCoordinateSystem(coordinateSystem_);
 }
 
-IntVector3 RaycastVehicle::GetCoordinateSystem()
-{
-    return coordinateSystem_;
-}
-
 void RaycastVehicle::ResetWheels()
 {
     ResetSuspension();

+ 1 - 1
Source/Urho3D/Physics/RaycastVehicle.h

@@ -157,7 +157,7 @@ public:
     /// Get revolution per minute value for when wheel doesn't touch ground.
     float GetInAirRPM() const;
     /// Get the coordinate system.
-    IntVector3 GetCoordinateSystem();
+    IntVector3 GetCoordinateSystem() const { return coordinateSystem_; }
 
     /// Get wheel data attribute for serialization.
     VariantVector GetWheelDataAttr() const;