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

Function MakeB2EdgeShape

CollisionB2ShapeEdge.go:16–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14}
15
16func MakeB2EdgeShape() B2EdgeShape {
17 return B2EdgeShape{
18 B2Shape: B2Shape{
19 M_type: B2Shape_Type.E_edge,
20 M_radius: B2_polygonRadius,
21 },
22 M_vertex0: MakeB2Vec2(0, 0),
23 M_vertex3: MakeB2Vec2(0, 0),
24 M_hasVertex0: false,
25 M_hasVertex3: false,
26 }
27}
28
29func NewB2EdgeShape() *B2EdgeShape {
30 res := MakeB2EdgeShape()

Callers 4

EvaluateMethod · 0.85
NewB2EdgeShapeFunction · 0.85
EvaluateMethod · 0.85
RayCastMethod · 0.85

Calls 1

MakeB2Vec2Function · 0.85

Tested by

no test coverage detected