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

Function MakeB2MouseJointDef

DynamicsB2JointMouse.go:28–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28func MakeB2MouseJointDef() B2MouseJointDef {
29 res := B2MouseJointDef{
30 B2JointDef: MakeB2JointDef(),
31 }
32
33 res.Type = B2JointType.E_mouseJoint
34 res.Target.Set(0.0, 0.0)
35 res.MaxForce = 0.0
36 res.FrequencyHz = 5.0
37 res.DampingRatio = 0.7
38
39 return res
40}
41
42/// A mouse joint is used to make a point on a body track a
43/// specified world point. This a soft constraint with a maximum

Callers

nothing calls this directly

Calls 2

MakeB2JointDefFunction · 0.85
SetMethod · 0.45

Tested by

no test coverage detected