| 40 | } |
| 41 | |
| 42 | JointDef* JointDef::friction( |
| 43 | bool collision, |
| 44 | String bodyA, |
| 45 | String bodyB, |
| 46 | const Vec2& worldPos, |
| 47 | float maxForce, |
| 48 | float maxTorque) { |
| 49 | FrictionDef* def = new FrictionDef(); |
| 50 | def->collision = collision; |
| 51 | def->bodyA = bodyA.toString(); |
| 52 | def->bodyB = bodyB.toString(); |
| 53 | def->worldPos = worldPos; |
| 54 | def->maxForce = maxForce; |
| 55 | def->maxTorque = maxTorque; |
| 56 | def->autorelease(); |
| 57 | return def; |
| 58 | } |
| 59 | |
| 60 | JointDef* JointDef::gear( |
| 61 | bool collision, |
nothing calls this directly
no test coverage detected