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

Function MakeB2RevoluteJointDef

DynamicsB2JointRevolute.go:51–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49}
50
51func 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

Callers

nothing calls this directly

Calls 2

MakeB2JointDefFunction · 0.85
SetMethod · 0.45

Tested by

no test coverage detected