MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / weld

Method weld

Source/Physics/JointDef.cpp:182–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182JointDef* JointDef::weld(
183 bool collision,
184 String bodyA,
185 String bodyB,
186 const Vec2& worldPos,
187 float frequency,
188 float damping) {
189 WeldDef* def = new WeldDef();
190 def->collision = collision;
191 def->bodyA = bodyA.toString();
192 def->bodyB = bodyB.toString();
193 def->worldPos = worldPos;
194 def->frequency = frequency;
195 def->damping = damping;
196 def->autorelease();
197 return def;
198}
199
200JointDef* JointDef::wheel(
201 bool collision,

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
toStringMethod · 0.65

Tested by

no test coverage detected