(shape B2ShapeInterface, density float64)
| 642 | } |
| 643 | |
| 644 | func (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 | |
| 653 | func (body *B2Body) DestroyFixture(fixture *B2Fixture) { |
| 654 |