diff --git a/src/physics/physical_object.cpp b/src/physics/physical_object.cpp index 073cf30ad..7f11763c2 100644 --- a/src/physics/physical_object.cpp +++ b/src/physics/physical_object.cpp @@ -79,7 +79,7 @@ PhysicalObject::PhysicalObject(const XMLNode &xml_node) // ----------------------------------------------------------------------------- PhysicalObject::PhysicalObject(const std::string& model, - bodyTypes shape, int mass, int radius, + bodyTypes shape, float mass, float radius, const core::vector3df& hpr, const core::vector3df& pos, const core::vector3df& scale) diff --git a/src/physics/physical_object.hpp b/src/physics/physical_object.hpp index 1a7ff83ba..ccdc8030e 100644 --- a/src/physics/physical_object.hpp +++ b/src/physics/physical_object.hpp @@ -70,7 +70,7 @@ public: PhysicalObject (const XMLNode &node); PhysicalObject(const std::string& model, - bodyTypes shape, int mass, int radius, + bodyTypes shape, float mass, float radius, const core::vector3df& hpr, const core::vector3df& pos, const core::vector3df& scale); diff --git a/src/tracks/track_object_manager.cpp b/src/tracks/track_object_manager.cpp index b76ac222c..774e28816 100644 --- a/src/tracks/track_object_manager.cpp +++ b/src/tracks/track_object_manager.cpp @@ -193,12 +193,14 @@ void TrackObjectManager::enableFog(bool enable) // ---------------------------------------------------------------------------- PhysicalObject* TrackObjectManager::insertObject(const std::string& model, - PhysicalObject::bodyTypes shape, int mass, int radius, + PhysicalObject::bodyTypes shape, + float mass, float radius, const core::vector3df& hpr, const core::vector3df& pos, const core::vector3df& scale) { - PhysicalObject* object = new PhysicalObject(model, shape, mass, radius, hpr, pos, scale); + PhysicalObject* object = new PhysicalObject(model, shape, mass, radius, + hpr, pos, scale); object->init(); m_all_objects.push_back(object); return object; diff --git a/src/tracks/track_object_manager.hpp b/src/tracks/track_object_manager.hpp index 673ae7e48..f20585d6c 100644 --- a/src/tracks/track_object_manager.hpp +++ b/src/tracks/track_object_manager.hpp @@ -55,7 +55,8 @@ public: void enableFog(bool enable); PhysicalObject* insertObject(const std::string& model, - PhysicalObject::bodyTypes shape, int mass, int radius, + PhysicalObject::bodyTypes shape, + float mass, float radius, const core::vector3df& hpr, const core::vector3df& pos, const core::vector3df& scale);