The constructor sets the default fixture definition values.
()
| 57 | |
| 58 | /// The constructor sets the default fixture definition values. |
| 59 | func MakeB2FixtureDef() B2FixtureDef { |
| 60 | return B2FixtureDef{ |
| 61 | Shape: nil, |
| 62 | UserData: nil, |
| 63 | Friction: 0.2, |
| 64 | Restitution: 0.0, |
| 65 | Density: 0.0, |
| 66 | IsSensor: false, |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | /// This proxy is used internally to connect fixtures to the broad-phase. |
| 71 | type B2FixtureProxy struct { |