()
| 22 | } |
| 23 | |
| 24 | func MakeB2FrictionJointDef() B2FrictionJointDef { |
| 25 | res := B2FrictionJointDef{ |
| 26 | B2JointDef: MakeB2JointDef(), |
| 27 | } |
| 28 | |
| 29 | res.Type = B2JointType.E_frictionJoint |
| 30 | res.LocalAnchorA.SetZero() |
| 31 | res.LocalAnchorB.SetZero() |
| 32 | res.MaxForce = 0.0 |
| 33 | res.MaxTorque = 0.0 |
| 34 | |
| 35 | return res |
| 36 | } |
| 37 | |
| 38 | /// Friction joint. This is used for top-down friction. |
| 39 | /// It provides 2D translational friction and angular friction. |
nothing calls this directly
no test coverage detected