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

Method SetAngularVelocity

DynamicsB2Body.go:204–214  ·  view source on GitHub ↗
(w float64)

Source from the content-addressed store, hash-verified

202}
203
204func (body *B2Body) SetAngularVelocity(w float64) {
205 if body.M_type == B2BodyType.B2_staticBody {
206 return
207 }
208
209 if w*w > 0.0 {
210 body.SetAwake(true)
211 }
212
213 body.M_angularVelocity = w
214}
215
216func (body B2Body) GetAngularVelocity() float64 {
217 return body.M_angularVelocity

Callers

nothing calls this directly

Calls 1

SetAwakeMethod · 0.95

Tested by

no test coverage detected