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

Method SetMaxForce

DynamicsB2JointMotor.go:271–274  ·  view source on GitHub ↗
(force float64)

Source from the content-addressed store, hash-verified

269}
270
271func (joint *B2MotorJoint) SetMaxForce(force float64) {
272 B2Assert(B2IsValid(force) && force >= 0.0)
273 joint.M_maxForce = force
274}
275
276func (joint B2MotorJoint) GetMaxForce() float64 {
277 return joint.M_maxForce

Callers

nothing calls this directly

Calls 2

B2AssertFunction · 0.85
B2IsValidFunction · 0.85

Tested by

no test coverage detected