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

Method SetDensity

DynamicsB2Fixture.go:144–147  ·  view source on GitHub ↗
(density float64)

Source from the content-addressed store, hash-verified

142}
143
144func (fix *B2Fixture) SetDensity(density float64) {
145 B2Assert(B2IsValid(density) && density >= 0.0)
146 fix.M_density = density
147}
148
149func (fix B2Fixture) GetDensity() float64 {
150 return fix.M_density

Callers

nothing calls this directly

Calls 2

B2AssertFunction · 0.85
B2IsValidFunction · 0.85

Tested by

no test coverage detected