()
| 21 | } |
| 22 | |
| 23 | func MakeB2GearJointDef() B2GearJointDef { |
| 24 | res := B2GearJointDef{ |
| 25 | B2JointDef: MakeB2JointDef(), |
| 26 | } |
| 27 | |
| 28 | res.Type = B2JointType.E_gearJoint |
| 29 | res.Joint1 = nil |
| 30 | res.Joint2 = nil |
| 31 | res.Ratio = 1.0 |
| 32 | |
| 33 | return res |
| 34 | } |
| 35 | |
| 36 | /// A gear joint is used to connect two joints together. Either joint |
| 37 | /// can be a revolute or prismatic joint. You specify a gear ratio |
nothing calls this directly
no test coverage detected