(shape, fixdef?)
| 1080 | createFixture(shape: Shape, density?: number): Fixture; |
| 1081 | // tslint:disable-next-line:typedef |
| 1082 | createFixture(shape, fixdef?) { |
| 1083 | if (_ASSERT) console.assert(this.isWorldLocked() == false); |
| 1084 | |
| 1085 | if (this.isWorldLocked() == true) { |
| 1086 | return null; |
| 1087 | } |
| 1088 | |
| 1089 | const fixture = new Fixture(this, shape, fixdef); |
| 1090 | this._addFixture(fixture); |
| 1091 | this.m_world.publish("add-fixture", fixture); |
| 1092 | return fixture; |
| 1093 | } |
| 1094 | |
| 1095 | /** |
| 1096 | * Destroy a fixture. This removes the fixture from the broad-phase and destroys |
no test coverage detected