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

Function MakeB2Rope

DynamicsB2Rope.go:75–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73}
74
75func MakeB2Rope() B2Rope {
76
77 res := B2Rope{}
78
79 res.M_count = 0
80 res.M_ps = nil
81 res.M_p0s = nil
82 res.M_vs = nil
83 res.M_ims = nil
84 res.M_Ls = nil
85 res.M_as = nil
86 res.M_gravity.SetZero()
87 res.M_k2 = 1.0
88 res.M_k3 = 0.1
89
90 return res
91}
92
93func (rope *B2Rope) Destroy() {
94 rope.M_ps = nil

Callers

nothing calls this directly

Calls 1

SetZeroMethod · 0.45

Tested by

no test coverage detected