| 198 | } |
| 199 | |
| 200 | JointDef* JointDef::wheel( |
| 201 | bool collision, |
| 202 | String bodyA, |
| 203 | String bodyB, |
| 204 | const Vec2& worldPos, |
| 205 | float axisAngle, |
| 206 | float maxMotorTorque, |
| 207 | float motorSpeed, |
| 208 | float frequency, |
| 209 | float damping) { |
| 210 | WheelDef* def = new WheelDef(); |
| 211 | def->collision = collision; |
| 212 | def->bodyA = bodyA.toString(); |
| 213 | def->bodyB = bodyB.toString(); |
| 214 | def->worldPos = worldPos; |
| 215 | def->axisAngle = axisAngle; |
| 216 | def->maxMotorTorque = maxMotorTorque; |
| 217 | def->motorSpeed = motorSpeed; |
| 218 | def->frequency = frequency; |
| 219 | def->damping = damping; |
| 220 | def->autorelease(); |
| 221 | return def; |
| 222 | } |
| 223 | |
| 224 | Vec2 JointDef::r(const Vec2& target) { |
| 225 | if (angle) { |
nothing calls this directly
no test coverage detected