| 195 | val w = world.createJoint(d) |
| 196 | return w |
| 197 | } |
| 198 | |
| 199 | fun weldJoint(a: FLine, b: FLine, dampingRatio: Double, frequencyHz: Double): Joint { |
| 200 | val pa = addPhysics(a) |
| 201 | val pb = addPhysics(b) |
| 202 | |
| 203 | val d = WeldJointDef() |
| 204 | d.initialize(pa.body, pb.body, convert(field.linalg.Vec2(0.0, 0.0))); |
| 205 | d.dampingRatio = dampingRatio.toFloat() |
| 206 | d.frequencyHz = frequencyHz.toFloat() |
| 207 | val w = world.createJoint(d) |
| 208 | return w |
| 209 | } |
| 210 |
nothing calls this directly
no test coverage detected