MCPcopy Create free account
hub / github.com/OpenMW/openmw / apply

Method apply

components/resource/bulletshapemanager.cpp:63–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 }
62
63 void apply(osg::Drawable& drawable) override
64 {
65 if (!mTriangleMesh)
66 mTriangleMesh.reset(new btTriangleMesh);
67
68 osg::Matrixf worldMat = osg::computeLocalToWorld(getNodePath());
69 osg::TriangleFunctor<GetTriangleFunctor> functor;
70 functor.setTriMesh(mTriangleMesh.get());
71 functor.setMatrix(worldMat);
72 drawable.accept(functor);
73 }
74
75 osg::ref_ptr<BulletShape> getShape()
76 {

Callers

nothing calls this directly

Calls 5

setTriMeshMethod · 0.80
setMatrixMethod · 0.80
resetMethod · 0.45
getMethod · 0.45
acceptMethod · 0.45

Tested by

no test coverage detected