ege/ege/physicsShape/PhysicsSphere.cpp

24 lines
497 B
C++

/** @file
* @author Edouard DUPIN
* @copyright 2011, Edouard DUPIN, all right reserved
* @license APACHE v2.0 (see license file)
*/
#include <ege/debug.h>
#include <ege/physicsShape/PhysicsSphere.h>
bool ege::PhysicsSphere::parse(const char* _line) {
if (ege::PhysicsShape::parse(_line) == true) {
return true;
}
if(strncmp(_line, "radius : ", 9) == 0) {
sscanf(&_line[9], "%f", &m_radius );
EGE_VERBOSE(" radius=" << m_radius);
return true;
}
return false;
}