| 140 | } |
| 141 | |
| 142 | JointDef* JointDef::revolute( |
| 143 | bool collision, |
| 144 | String bodyA, |
| 145 | String bodyB, |
| 146 | const Vec2& worldPos, |
| 147 | float lowerAngle, |
| 148 | float upperAngle, |
| 149 | float maxMotorTorque, |
| 150 | float motorSpeed) { |
| 151 | RevoluteDef* def = new RevoluteDef(); |
| 152 | def->collision = collision; |
| 153 | def->bodyA = bodyA.toString(); |
| 154 | def->bodyB = bodyB.toString(); |
| 155 | def->worldPos = worldPos; |
| 156 | def->lowerAngle = lowerAngle; |
| 157 | def->upperAngle = upperAngle; |
| 158 | def->maxMotorTorque = maxMotorTorque; |
| 159 | def->motorSpeed = motorSpeed; |
| 160 | def->autorelease(); |
| 161 | return def; |
| 162 | } |
| 163 | |
| 164 | JointDef* JointDef::rope( |
| 165 | bool collision, |
nothing calls this directly
no test coverage detected