anyKode Marilou
ContentsIndexHome
PreviousUpNext
GeomBody

Rigid Body.

C++
class GeomBody : public Geom;

ModaCpp.h

The GeomBody class overrides the base Geom class. Use QueryBody of RobotPHX or GetBody of a Geom in order to get a pointer to the wanted body. 

 

ModaCPP::Geom *pSphere=pWorld->QueryGeom("sphere0");
ModaCPP::GeomBody *pSphereBody=pSphere->GetBody();
(do not delete pSphereBody)

or

ModaCPP::GeomBody *pSphereBody=pWorld->QueryGeom("body0");
(delete pSphereBody)
Documentation v4.7 (18/01/2015), Copyright (c) 2015 anyKode. All rights reserved.
What do you think about this topic? Send feedback!