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

Method CreateFixture

DynamicsB2Body.go:644–651  ·  view source on GitHub ↗
(shape B2ShapeInterface, density float64)

Source from the content-addressed store, hash-verified

642}
643
644func (body *B2Body) CreateFixture(shape B2ShapeInterface, density float64) *B2Fixture {
645
646 def := MakeB2FixtureDef()
647 def.Shape = shape
648 def.Density = density
649
650 return body.CreateFixtureFromDef(&def)
651}
652
653func (body *B2Body) DestroyFixture(fixture *B2Fixture) {
654

Callers 1

TestCPPComplianceFunction · 0.80

Calls 2

CreateFixtureFromDefMethod · 0.95
MakeB2FixtureDefFunction · 0.85

Tested by 1

TestCPPComplianceFunction · 0.64