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

Function B2CircleContact_Create

DynamicsB2ContactCircle.go:7–15  ·  view source on GitHub ↗
(fixtureA *B2Fixture, indexA int, fixtureB *B2Fixture, indexB int)

Source from the content-addressed store, hash-verified

5}
6
7func B2CircleContact_Create(fixtureA *B2Fixture, indexA int, fixtureB *B2Fixture, indexB int) B2ContactInterface {
8 B2Assert(fixtureA.GetType() == B2Shape_Type.E_circle)
9 B2Assert(fixtureB.GetType() == B2Shape_Type.E_circle)
10 res := &B2CircleContact{
11 B2Contact: MakeB2Contact(fixtureA, 0, fixtureB, 0),
12 }
13
14 return res
15}
16
17func B2CircleContact_Destroy(contact B2ContactInterface) { // should be a pointer
18}

Callers

nothing calls this directly

Calls 3

B2AssertFunction · 0.85
MakeB2ContactFunction · 0.85
GetTypeMethod · 0.65

Tested by

no test coverage detected