| 180 | } |
| 181 | |
| 182 | JointDef* 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 | |
| 200 | JointDef* JointDef::wheel( |
| 201 | bool collision, |
nothing calls this directly
no test coverage detected