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

Method SetMaxTorque

DynamicsB2JointMotor.go:280–283  ·  view source on GitHub ↗
(torque float64)

Source from the content-addressed store, hash-verified

278}
279
280func (joint *B2MotorJoint) SetMaxTorque(torque float64) {
281 B2Assert(B2IsValid(torque) && torque >= 0.0)
282 joint.M_maxTorque = torque
283}
284
285func (joint B2MotorJoint) GetMaxTorque() float64 {
286 return joint.M_maxTorque

Callers

nothing calls this directly

Calls 2

B2AssertFunction · 0.85
B2IsValidFunction · 0.85

Tested by

no test coverage detected