Browse Source

Add lua binding.

Nicholas Farshidmehr 8 years ago
parent
commit
3a44a98ed2
1 changed files with 4 additions and 1 deletions
  1. 4 1
      Source/Urho3D/LuaScript/pkgs/Physics/RaycastVehicle.pkg

+ 4 - 1
Source/Urho3D/LuaScript/pkgs/Physics/RaycastVehicle.pkg

@@ -28,6 +28,7 @@ class RaycastVehicle : public LogicComponent
     void SetMaxSideSlipSpeed(float speed);
     void SetMaxSideSlipSpeed(float speed);
     void SetWheelSkidInfoCumulative(int wheel, float skid);
     void SetWheelSkidInfoCumulative(int wheel, float skid);
     void SetInAirRPM(float rpm);
     void SetInAirRPM(float rpm);
+    void SetCoordinateSystem(const IntVector3& coordinateSystem = DEFAULT_COORDINATE_SYSTEM);
     void Init();
     void Init();
 
 
     Vector3 GetWheelPosition(int wheel);
     Vector3 GetWheelPosition(int wheel);
@@ -56,5 +57,7 @@ class RaycastVehicle : public LogicComponent
     Vector3 GetContactPosition(int wheel) const;
     Vector3 GetContactPosition(int wheel) const;
     Vector3 GetContactNormal(int wheel) const;
     Vector3 GetContactNormal(int wheel) const;
     float GetInAirRPM() const;
     float GetInAirRPM() const;
-};
+    IntVector3 GetCoordinateSystem() const;
 
 
+    static const IntVector3 DEFAULT_COORDINATE_SYSTEM;
+};