| 94 | } |
| 95 | |
| 96 | JointDef* JointDef::prismatic( |
| 97 | bool collision, |
| 98 | String bodyA, |
| 99 | String bodyB, |
| 100 | const Vec2& worldPos, |
| 101 | float axisAngle, |
| 102 | float lowerTranslation, |
| 103 | float upperTranslation, |
| 104 | float maxMotorForce, |
| 105 | float motorSpeed) { |
| 106 | PrismaticDef* def = new PrismaticDef(); |
| 107 | def->collision = collision; |
| 108 | def->bodyA = bodyA.toString(); |
| 109 | def->bodyB = bodyB.toString(); |
| 110 | def->worldPos = worldPos; |
| 111 | def->axisAngle = axisAngle; |
| 112 | def->lowerTranslation = lowerTranslation; |
| 113 | def->upperTranslation = upperTranslation; |
| 114 | def->maxMotorForce = maxMotorForce; |
| 115 | def->motorSpeed = motorSpeed; |
| 116 | def->autorelease(); |
| 117 | return def; |
| 118 | } |
| 119 | |
| 120 | JointDef* JointDef::pulley( |
| 121 | bool collision, |
nothing calls this directly
no test coverage detected