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

Function MakeB2GearJointDef

DynamicsB2JointGear.go:23–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21}
22
23func 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

Callers

nothing calls this directly

Calls 1

MakeB2JointDefFunction · 0.85

Tested by

no test coverage detected