| 20 | : angle(0) { } |
| 21 | |
| 22 | JointDef* JointDef::distance( |
| 23 | bool collision, |
| 24 | String bodyA, |
| 25 | String bodyB, |
| 26 | const Vec2& anchorA, |
| 27 | const Vec2& anchorB, |
| 28 | float frequency, |
| 29 | float damping) { |
| 30 | DistanceDef* def = new DistanceDef(); |
| 31 | def->collision = collision; |
| 32 | def->bodyA = bodyA.toString(); |
| 33 | def->bodyB = bodyB.toString(); |
| 34 | def->anchorA = anchorA; |
| 35 | def->anchorB = anchorB; |
| 36 | def->frequency = frequency; |
| 37 | def->damping = damping; |
| 38 | def->autorelease(); |
| 39 | return def; |
| 40 | } |
| 41 | |
| 42 | JointDef* JointDef::friction( |
| 43 | bool collision, |
nothing calls this directly
no test coverage detected