1 /***************************************************************************
2                           collisiondata.cpp  -  description
3                              -------------------
4     begin                : do aug 19 2004
5     copyright            : (C) 2004 by CJP
6     email                : cornware-cjp@users.sourceforge.net
7  ***************************************************************************/
8 
9 /***************************************************************************
10  *                                                                         *
11  *   This program is free software; you can redistribute it and/or modify  *
12  *   it under the terms of the GNU General Public License as published by  *
13  *   the Free Software Foundation; either version 2 of the License, or     *
14  *   (at your option) any later version.                                   *
15  *                                                                         *
16  ***************************************************************************/
17 
18 #include "collisiondata.h"
19 
CCollisionData()20 CCollisionData::CCollisionData()
21 {
22 	depth = 0.0;
23 	fatal = false;
24 }
25 
getTangVel() const26 float CCollisionData::getTangVel() const
27 {
28 	return (vdiff - vdiff.component(nor)).abs();
29 }
30 
getRadVel() const31 float CCollisionData::getRadVel() const
32 {
33 	return vdiff.component(nor).abs();
34 }
35