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

Method AddContact

DynamicsB2Island.go:40–44  ·  view source on GitHub ↗
(contact B2ContactInterface)

Source from the content-addressed store, hash-verified

38}
39
40func (island *B2Island) AddContact(contact B2ContactInterface) { // contact has to be a pointer
41 B2Assert(island.M_contactCount < island.M_contactCapacity)
42 island.M_contacts[island.M_contactCount] = contact
43 island.M_contactCount++
44}
45
46func (island *B2Island) Add(joint B2JointInterface) { // joint has to be a pointer
47 B2Assert(island.M_jointCount < island.M_jointCapacity)

Callers 2

SolveMethod · 0.80
SolveTOIMethod · 0.80

Calls 1

B2AssertFunction · 0.85

Tested by

no test coverage detected