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

Function MakeB2FixtureDef

DynamicsB2Fixture.go:59–68  ·  view source on GitHub ↗

The constructor sets the default fixture definition values.

()

Source from the content-addressed store, hash-verified

57
58/// The constructor sets the default fixture definition values.
59func 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.
71type B2FixtureProxy struct {

Callers 1

CreateFixtureMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected