| 162 | } |
| 163 | |
| 164 | JointDef* 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 | |
| 182 | JointDef* JointDef::weld( |
| 183 | bool collision, |
nothing calls this directly
no test coverage detected