()
| 40 | } |
| 41 | |
| 42 | func MakeB2WheelJointDef() B2WheelJointDef { |
| 43 | res := B2WheelJointDef{ |
| 44 | B2JointDef: MakeB2JointDef(), |
| 45 | } |
| 46 | |
| 47 | res.Type = B2JointType.E_wheelJoint |
| 48 | res.LocalAnchorA.SetZero() |
| 49 | res.LocalAnchorB.SetZero() |
| 50 | res.LocalAxisA.Set(1.0, 0.0) |
| 51 | res.EnableMotor = false |
| 52 | res.MaxMotorTorque = 0.0 |
| 53 | res.MotorSpeed = 0.0 |
| 54 | res.FrequencyHz = 2.0 |
| 55 | res.DampingRatio = 0.7 |
| 56 | |
| 57 | return res |
| 58 | } |
| 59 | |
| 60 | /// A wheel joint. This joint provides two degrees of freedom: translation |
| 61 | /// along an axis fixed in bodyA and rotation in the plane. In other words, it is a point to |
nothing calls this directly
no test coverage detected