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

Function MakeB2FrictionJointDef

DynamicsB2JointFriction.go:24–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22}
23
24func MakeB2FrictionJointDef() B2FrictionJointDef {
25 res := B2FrictionJointDef{
26 B2JointDef: MakeB2JointDef(),
27 }
28
29 res.Type = B2JointType.E_frictionJoint
30 res.LocalAnchorA.SetZero()
31 res.LocalAnchorB.SetZero()
32 res.MaxForce = 0.0
33 res.MaxTorque = 0.0
34
35 return res
36}
37
38/// Friction joint. This is used for top-down friction.
39/// It provides 2D translational friction and angular friction.

Callers

nothing calls this directly

Calls 2

MakeB2JointDefFunction · 0.85
SetZeroMethod · 0.45

Tested by

no test coverage detected