MCPcopy Create free account
hub / github.com/ByteArena/box2d / MakeB2WheelJointDef

Function MakeB2WheelJointDef

DynamicsB2JointWheel.go:42–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42func 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

Callers

nothing calls this directly

Calls 3

MakeB2JointDefFunction · 0.85
SetZeroMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected