()
| 26 | } |
| 27 | |
| 28 | func MakeB2MouseJointDef() B2MouseJointDef { |
| 29 | res := B2MouseJointDef{ |
| 30 | B2JointDef: MakeB2JointDef(), |
| 31 | } |
| 32 | |
| 33 | res.Type = B2JointType.E_mouseJoint |
| 34 | res.Target.Set(0.0, 0.0) |
| 35 | res.MaxForce = 0.0 |
| 36 | res.FrequencyHz = 5.0 |
| 37 | res.DampingRatio = 0.7 |
| 38 | |
| 39 | return res |
| 40 | } |
| 41 | |
| 42 | /// A mouse joint is used to make a point on a body track a |
| 43 | /// specified world point. This a soft constraint with a maximum |
nothing calls this directly
no test coverage detected