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

Method SetMaxTorque

DynamicsB2JointFriction.go:273–276  ·  view source on GitHub ↗
(torque float64)

Source from the content-addressed store, hash-verified

271}
272
273func (joint *B2FrictionJoint) SetMaxTorque(torque float64) {
274 B2Assert(B2IsValid(torque) && torque >= 0.0)
275 joint.M_maxTorque = torque
276}
277
278func (joint B2FrictionJoint) GetMaxTorque() float64 {
279 return joint.M_maxTorque

Callers

nothing calls this directly

Calls 2

B2AssertFunction · 0.85
B2IsValidFunction · 0.85

Tested by

no test coverage detected