MCPcopy Create free account
hub / github.com/defold/defold / b2CreatePolygonShape

Function b2CreatePolygonShape

external/box2d/Box2D/src/shape.c:211–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211b2ShapeId b2CreatePolygonShape( b2BodyId bodyId, const b2ShapeDef* def, const b2Polygon* polygon )
212{
213 B2_ASSERT( b2IsValidFloat( polygon->radius ) && polygon->radius >= 0.0f );
214 return b2CreateShape( bodyId, def, polygon, b2_polygonShape );
215}
216
217b2ShapeId b2CreateSegmentShape( b2BodyId bodyId, const b2ShapeDef* def, const b2Segment* segment )
218{

Callers 3

CreateGridCellShapeFunction · 0.85
NewCollisionObject2DFunction · 0.85
Body_CreateShapeFunction · 0.85

Calls 2

b2IsValidFloatFunction · 0.85
b2CreateShapeFunction · 0.85

Tested by

no test coverage detected