Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
144
func
(fix *B2Fixture) SetDensity(density float64) {
145
B2Assert(B2IsValid(density) && density >= 0.0)
146
fix.M_density = density
147
}
148
149
func
(fix B2Fixture) GetDensity() float64 {
150
return
fix.M_density
Callers
nothing calls this directly
Calls
2
B2Assert
Function · 0.85
B2IsValid
Function · 0.85
Tested by
no test coverage detected