()
| 49 | } |
| 50 | |
| 51 | func MakeB2RevoluteJointDef() B2RevoluteJointDef { |
| 52 | res := B2RevoluteJointDef{ |
| 53 | B2JointDef: MakeB2JointDef(), |
| 54 | } |
| 55 | |
| 56 | res.Type = B2JointType.E_revoluteJoint |
| 57 | res.LocalAnchorA.Set(0.0, 0.0) |
| 58 | res.LocalAnchorB.Set(0.0, 0.0) |
| 59 | res.ReferenceAngle = 0.0 |
| 60 | res.LowerAngle = 0.0 |
| 61 | res.UpperAngle = 0.0 |
| 62 | res.MaxMotorTorque = 0.0 |
| 63 | res.MotorSpeed = 0.0 |
| 64 | res.EnableLimit = false |
| 65 | res.EnableMotor = false |
| 66 | |
| 67 | return res |
| 68 | } |
| 69 | |
| 70 | /// A revolute joint constrains two bodies to share a common point while they |
| 71 | /// are free to rotate about the point. The relative rotation about the shared |
nothing calls this directly
no test coverage detected