()
| 32 | } |
| 33 | |
| 34 | func MakeB2DistanceJointDef() B2DistanceJointDef { |
| 35 | res := B2DistanceJointDef{ |
| 36 | B2JointDef: MakeB2JointDef(), |
| 37 | } |
| 38 | |
| 39 | res.Type = B2JointType.E_distanceJoint |
| 40 | res.LocalAnchorA.Set(0.0, 0.0) |
| 41 | res.LocalAnchorB.Set(0.0, 0.0) |
| 42 | res.Length = 1.0 |
| 43 | res.FrequencyHz = 0.0 |
| 44 | res.DampingRatio = 0.0 |
| 45 | |
| 46 | return res |
| 47 | } |
| 48 | |
| 49 | /// A distance joint constrains two points on two bodies |
| 50 | /// to remain at a fixed distance from each other. You can view |
nothing calls this directly
no test coverage detected