anyKode Marilou
ContentsIndexHome
Example
ModaCPP::Geom *pSphere=pWorld->QueryGeom("sphere0");
ModaCPP::GeomBody *pSphereBody=pSphere->GetBody();
if( pSphereBody)
    {
    Moda::Commons::Inertia InertiaValues;
    if( pSphereBody->GetInertia(&InertiaValues))
        {
        xkode::lib::String string=InertiaValues.ToString();
        _cprintf("%s\r\n",string.GetData());
        }
    else
        {
        _cprintf("Error while retrieving body's inertia values (%d)\r\n",pSphereBody->GetLastSystemError());
        }
    }
Documentation v4.7 (18/01/2015), Copyright (c) 2015 anyKode. All rights reserved.