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

Function B2PolygonContact_Create

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

B2ContactPolygon.go

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

Source from the content-addressed store, hash-verified

13///////////////////////////////////////////////////////////////////////////////
14
15func B2PolygonContact_Create(fixtureA *B2Fixture, indexA int, fixtureB *B2Fixture, indexB int) B2ContactInterface {
16 B2Assert(fixtureA.GetType() == B2Shape_Type.E_polygon)
17 B2Assert(fixtureB.GetType() == B2Shape_Type.E_polygon)
18 res := &B2PolygonContact{
19 B2Contact: MakeB2Contact(fixtureA, 0, fixtureB, 0),
20 }
21
22 return res
23}
24
25func B2PolygonContact_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