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

Function B2ChainAndCircleContact_Create

DynamicsB2ContactChainAndCircle.go:15–23  ·  view source on GitHub ↗

B2ChainAndCircleContact.cpp

(fixtureA *B2Fixture, indexA int, fixtureB *B2Fixture, indexB int)

Source from the content-addressed store, hash-verified

13///////////////////////////////////////////////////////////////////////////////
14
15func B2ChainAndCircleContact_Create(fixtureA *B2Fixture, indexA int, fixtureB *B2Fixture, indexB int) B2ContactInterface {
16 B2Assert(fixtureA.GetType() == B2Shape_Type.E_chain)
17 B2Assert(fixtureB.GetType() == B2Shape_Type.E_circle)
18 res := &B2ChainAndCircleContact{
19 B2Contact: MakeB2Contact(fixtureA, indexA, fixtureB, indexB),
20 }
21
22 return res
23}
24
25func B2ChainAndCircleContact_Destroy(contact B2ContactInterface) { // should be a pointer
26}

Callers

nothing calls this directly

Calls 3

B2AssertFunction · 0.85
MakeB2ContactFunction · 0.85
GetTypeMethod · 0.65

Tested by

no test coverage detected