| 72 | } |
| 73 | |
| 74 | JointDef* JointDef::spring( |
| 75 | bool collision, |
| 76 | String bodyA, |
| 77 | String bodyB, |
| 78 | const Vec2& linearOffset, |
| 79 | float angularOffset, |
| 80 | float maxForce, |
| 81 | float maxTorque, |
| 82 | float correctionFactor) { |
| 83 | SpringDef* def = new SpringDef(); |
| 84 | def->collision = collision; |
| 85 | def->bodyA = bodyA.toString(); |
| 86 | def->bodyB = bodyB.toString(); |
| 87 | def->linearOffset = linearOffset; |
| 88 | def->angularOffset = angularOffset; |
| 89 | def->maxForce = maxForce; |
| 90 | def->maxTorque = maxTorque; |
| 91 | def->correctionFactor = correctionFactor; |
| 92 | def->autorelease(); |
| 93 | return def; |
| 94 | } |
| 95 | |
| 96 | JointDef* JointDef::prismatic( |
| 97 | bool collision, |
nothing calls this directly
no test coverage detected