| 118 | } |
| 119 | |
| 120 | JointDef* JointDef::pulley( |
| 121 | bool collision, |
| 122 | String bodyA, |
| 123 | String bodyB, |
| 124 | const Vec2& anchorA, |
| 125 | const Vec2& anchorB, |
| 126 | const Vec2& groundAnchorA, |
| 127 | const Vec2& groundAnchorB, |
| 128 | float ratio) { |
| 129 | PulleyDef* def = new PulleyDef(); |
| 130 | def->collision = collision; |
| 131 | def->bodyA = bodyA.toString(); |
| 132 | def->bodyB = bodyB.toString(); |
| 133 | def->anchorA = anchorA; |
| 134 | def->anchorB = anchorB; |
| 135 | def->groundAnchorA = groundAnchorA; |
| 136 | def->groundAnchorB = groundAnchorB; |
| 137 | def->ratio = ratio; |
| 138 | def->autorelease(); |
| 139 | return def; |
| 140 | } |
| 141 | |
| 142 | JointDef* JointDef::revolute( |
| 143 | bool collision, |
nothing calls this directly
no test coverage detected