Пример #1
0
/* ....................................................................... */
Capsule::Capsule(const Capsule& other, const osg::CopyOp& copyop):
    Collidable(other, copyop)
{
    m_ODE_geom = dCreateCapsule(NULL, REAL(0.5), REAL(1.0)) ;

    _cloneODECapsule(other.m_ODE_geom, m_ODE_geom) ;

    dGeomSetBody(m_ODE_geom, m_ODE_body) ;

    dGeomSetData(m_ODE_geom, this) ;


    setCollidableOffset(other.getCollidableOffset()) ;
}