MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / appendMaterial

Method appendMaterial

src/BulletSoftBody/btSoftBody.cpp:302–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300
301//
302btSoftBody::Material* btSoftBody::appendMaterial()
303{
304 Material* pm = new (btAlignedAlloc(sizeof(Material), 16)) Material();
305 if (m_materials.size() > 0)
306 *pm = *m_materials[0];
307 else
308 ZeroInitialize(*pm);
309 m_materials.push_back(pm);
310 return (pm);
311}
312
313//
314void btSoftBody::appendNote(const char* text,

Callers 12

CreateMethod · 0.80
Init_Collide3Function · 0.80
Init_AeroFunction · 0.80
Init_Aero2Function · 0.80
Init_ClothFunction · 0.80
Init_BunnyFunction · 0.80
Ctor_ClusterBunnyFunction · 0.80
Ctor_ClusterTorusFunction · 0.80
Init_ClusterCollide1Function · 0.80
createSoftBodyMethod · 0.80
processDeformableMethod · 0.80

Calls 3

ZeroInitializeFunction · 0.85
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected