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

Function MakeB2RopeDef

DynamicsB2Rope.go:32–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32func MakeB2RopeDef() B2RopeDef {
33 res := B2RopeDef{}
34
35 res.Vertices = nil
36 res.Count = 0
37 res.Masses = nil
38 res.Gravity.SetZero()
39 res.Damping = 0.1
40 res.K2 = 0.9
41 res.K3 = 0.1
42
43 return res
44}
45
46///
47type B2Rope struct {

Callers

nothing calls this directly

Calls 1

SetZeroMethod · 0.45

Tested by

no test coverage detected