Removed unused file coord.hpp.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5204 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
506ed556df
commit
ca9eb71087
@ -336,7 +336,6 @@ supertuxkart_SOURCES = \
|
||||
tracks/track_object_manager.hpp \
|
||||
utils/constants.hpp \
|
||||
utils/constants.cpp \
|
||||
utils/coord.hpp \
|
||||
utils/no_copy.hpp \
|
||||
utils/ptr_vector.hpp \
|
||||
utils/random_generator.cpp \
|
||||
|
@ -30,7 +30,6 @@
|
||||
#include "race/race_manager.hpp"
|
||||
#include "tracks/track.hpp"
|
||||
#include "utils/constants.hpp"
|
||||
#include "utils/coord.hpp"
|
||||
|
||||
Camera::Camera(int camera_index, const Kart* kart)
|
||||
{
|
||||
|
@ -22,7 +22,6 @@
|
||||
#include "graphics/irr_driver.hpp"
|
||||
#include "karts/kart.hpp"
|
||||
#include "physics/btKart.hpp"
|
||||
#include "utils/coord.hpp"
|
||||
|
||||
float SkidMarks::m_avoid_z_fighting = 0.0f;
|
||||
const int SkidMarks::m_start_alpha = 128;
|
||||
|
@ -27,7 +27,6 @@ using namespace irr;
|
||||
|
||||
#include "utils/vec3.hpp"
|
||||
|
||||
class Coord;
|
||||
class Kart;
|
||||
|
||||
/** This class is responsible for drawing skid marks for a kart. */
|
||||
|
@ -1106,10 +1106,6 @@
|
||||
RelativePath="..\..\utils\constants.hpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\utils\coord.hpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\utils\no_copy.hpp"
|
||||
>
|
||||
|
@ -22,7 +22,6 @@
|
||||
#include "graphics/irr_driver.hpp"
|
||||
#include "karts/kart.hpp"
|
||||
#include "utils/constants.hpp"
|
||||
#include "utils/coord.hpp"
|
||||
#include "utils/vec3.hpp"
|
||||
|
||||
Item::Item(ItemType type, const Vec3& xyz, const Vec3& normal,
|
||||
|
@ -24,7 +24,6 @@
|
||||
using namespace irr;
|
||||
|
||||
#include "karts/kart.hpp"
|
||||
#include "utils/coord.hpp"
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
class Item
|
||||
|
@ -24,7 +24,6 @@
|
||||
#include "graphics/irr_driver.hpp"
|
||||
#include "graphics/material.hpp"
|
||||
#include "graphics/material_manager.hpp"
|
||||
#include "utils/coord.hpp"
|
||||
|
||||
Moveable::Moveable()
|
||||
{
|
||||
@ -87,7 +86,6 @@ void Moveable::reset()
|
||||
}
|
||||
m_node->setVisible(true); // In case that the objects was eliminated
|
||||
|
||||
Coord c(m_transform);
|
||||
m_hpr.setHPR(m_transform.getRotation());
|
||||
Vec3 up = getTrans().getBasis().getColumn(1);
|
||||
m_pitch = atan2(up.getZ(), fabsf(up.getY()));
|
||||
|
@ -32,7 +32,6 @@ using namespace irr;
|
||||
#include "modes/world.hpp"
|
||||
#include "tracks/track.hpp"
|
||||
#include "utils/constants.hpp"
|
||||
#include "utils/coord.hpp"
|
||||
#include "utils/string_utils.hpp"
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
@ -1,95 +0,0 @@
|
||||
// $Id: vec3.hpp 1954 2008-05-20 10:01:26Z scifly $
|
||||
//
|
||||
// SuperTuxKart - a fun racing game with go-kart
|
||||
// Copyright (C) 2008 Joerg Henrichs
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation; either version 3
|
||||
// of the License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
#ifndef HEADER_COORD_HPP
|
||||
#define HEADER_COORD_HPP
|
||||
|
||||
#include "LinearMath/btTransform.h"
|
||||
|
||||
#include "utils/vec3.hpp"
|
||||
|
||||
/** A class that stores a translation and rotation. It is used to convert
|
||||
* between bullet data structures and the data structure for the graphics.
|
||||
*/
|
||||
class Coord
|
||||
{
|
||||
private:
|
||||
/** Translation. */
|
||||
Vec3 m_xyz;
|
||||
/** Rotation as Eulerian HPR value. */
|
||||
Vec3 m_hpr;
|
||||
|
||||
|
||||
public:
|
||||
/** Constructor.
|
||||
* \param xyz Translation.
|
||||
* \param hpr Rotation.
|
||||
*/
|
||||
Coord(const Vec3& xyz, const Vec3& hpr)
|
||||
{
|
||||
m_xyz = xyz;
|
||||
m_hpr = hpr;
|
||||
//setSgCoord();
|
||||
} // Coord
|
||||
// ------------------------------------------------------------------------
|
||||
/** Constructor based on a bullet transformation (which is a translation
|
||||
* and rotation as well).
|
||||
* \param t The bullet transform.
|
||||
*/
|
||||
Coord(const btTransform& t)
|
||||
{
|
||||
m_xyz = t.getOrigin();
|
||||
m_hpr.setHPR(t.getRotation());
|
||||
//setSgCoord();
|
||||
} // Coord
|
||||
// ------------------------------------------------------------------------
|
||||
/** Default constructor. Sets xyz and hpr to 0. */
|
||||
Coord()
|
||||
{
|
||||
m_xyz = Vec3(0.0f);
|
||||
m_hpr = Vec3(0.0f);
|
||||
}
|
||||
// ------------------------------------------------------------------------
|
||||
/** Returns the translation. */
|
||||
const Vec3& getXYZ() const { return m_xyz; }
|
||||
/** Returns heading, pitch, rolll. */
|
||||
const Vec3& getHPR() const { return m_hpr; }
|
||||
/** Returns X. */
|
||||
float getX() const { return m_xyz.getX(); }
|
||||
/** Returns Y. */
|
||||
float getY() const { return m_xyz.getY(); }
|
||||
/** Returns Z. */
|
||||
float getZ() const { return m_xyz.getZ(); }
|
||||
/** Returns the heading. */
|
||||
float getHeading() const { return m_hpr.getHeading(); }
|
||||
|
||||
/** Sets hpr. \param a Heading, pitch and roll. */
|
||||
void setHPR(const Vec3& a) { m_hpr = a; /*setSgCoord();*/ }
|
||||
/** Sets xyz. \param a Coordinates. */
|
||||
void setXYZ(const Vec3& a) { m_xyz = a; /*setSgCoord();*/ }
|
||||
/** Sets X. \param x New X value. */
|
||||
void setX(float x) { m_xyz.setX(x); }
|
||||
/** Sets Y. \param y New Y value. */
|
||||
void setY(float y) { m_xyz.setY(y); }
|
||||
/** Sets Z. \param z New Z value. */
|
||||
void setZ(float z) { m_xyz.setZ(z); }
|
||||
}; // Coord
|
||||
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user