/*************************************************************************** collisiondata.cpp - description ------------------- begin : do aug 19 2004 copyright : (C) 2004 by CJP email : cornware-cjp@users.sourceforge.net ***************************************************************************/ /*************************************************************************** * * * 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 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include "collisiondata.h" CCollisionData::CCollisionData() { depth = 0.0; fatal = false; } float CCollisionData::getTangVel() const { return (vdiff - vdiff.component(nor)).abs(); } float CCollisionData::getRadVel() const { return vdiff.component(nor).abs(); }