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

Function MakeB2DistanceJointDef

DynamicsB2JointDistance.go:34–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32}
33
34func MakeB2DistanceJointDef() B2DistanceJointDef {
35 res := B2DistanceJointDef{
36 B2JointDef: MakeB2JointDef(),
37 }
38
39 res.Type = B2JointType.E_distanceJoint
40 res.LocalAnchorA.Set(0.0, 0.0)
41 res.LocalAnchorB.Set(0.0, 0.0)
42 res.Length = 1.0
43 res.FrequencyHz = 0.0
44 res.DampingRatio = 0.0
45
46 return res
47}
48
49/// A distance joint constrains two points on two bodies
50/// to remain at a fixed distance from each other. You can view

Callers

nothing calls this directly

Calls 2

MakeB2JointDefFunction · 0.85
SetMethod · 0.45

Tested by

no test coverage detected