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

Method rope

Source/Physics/JointDef.cpp:164–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164JointDef* JointDef::rope(
165 bool collision,
166 String bodyA,
167 String bodyB,
168 const Vec2& anchorA,
169 const Vec2& anchorB,
170 float maxLength) {
171 RopeDef* def = new RopeDef();
172 def->collision = collision;
173 def->bodyA = bodyA.toString();
174 def->bodyB = bodyB.toString();
175 def->anchorA = anchorA;
176 def->anchorB = anchorB;
177 def->maxLength = maxLength;
178 def->autorelease();
179 return def;
180}
181
182JointDef* JointDef::weld(
183 bool collision,

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
toStringMethod · 0.65

Tested by

no test coverage detected