summaryrefslogtreecommitdiffstats
path: root/src/physics.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/physics.h')
-rw-r--r--src/physics.h34
1 files changed, 24 insertions, 10 deletions
diff --git a/src/physics.h b/src/physics.h
index 3eb83f5..daead9c 100644
--- a/src/physics.h
+++ b/src/physics.h
@@ -1,4 +1,18 @@
-// physics.h
+// * This file is part of the COLOBOT source code
+// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch
+// *
+// * 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, see .
#ifndef _PHYSICS_H_
#define _PHYSICS_H_
@@ -42,21 +56,21 @@ enum PhysicsMode
typedef struct
{
- D3DVECTOR advanceAccel; // accélération de départ (+)
- D3DVECTOR recedeAccel; // accélération de départ (+)
- D3DVECTOR stopAccel; // accélération d'arrêt (+)
- D3DVECTOR motorAccel; // accélération actuelle (+/-)
+ D3DVECTOR advanceAccel; // acc�l�ration de d�part (+)
+ D3DVECTOR recedeAccel; // acc�l�ration de d�part (+)
+ D3DVECTOR stopAccel; // acc�l�ration d'arr�t (+)
+ D3DVECTOR motorAccel; // acc�l�ration actuelle (+/-)
D3DVECTOR advanceSpeed; // vitesse en marche avant (+)
- D3DVECTOR recedeSpeed; // vitesse en marche arrière (+)
- D3DVECTOR motorSpeed; // vitesse souhaitée (+/-)
+ D3DVECTOR recedeSpeed; // vitesse en marche arri�re (+)
+ D3DVECTOR motorSpeed; // vitesse souhait�e (+/-)
D3DVECTOR currentSpeed; // vitesse actuelle (+/-)
- D3DVECTOR terrainForce; // force de résistance du terrain (+)
+ D3DVECTOR terrainForce; // force de r�sistance du terrain (+)
D3DVECTOR terrainSpeed; // vitesse du terrain (+/-)
D3DVECTOR terrainSlide; // limite vitesse de glissement (+)
- D3DVECTOR realSpeed; // vitesse réelle (+/-)
+ D3DVECTOR realSpeed; // vitesse r�elle (+/-)
D3DVECTOR finalInclin; // inclinaison finale
}
@@ -182,7 +196,7 @@ protected:
float m_gravity; // force de gravitation
float m_time; // temps absolu
D3DVECTOR m_motorSpeed; // vitesse du moteur (-1..1)
- Motion m_linMotion; // mouvement linéaire
+ Motion m_linMotion; // mouvement lin�aire
Motion m_cirMotion; // mouvement circulaire
BOOL m_bMotor;
BOOL m_bLand;