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

Method SetCorrectionFactor

DynamicsB2JointMotor.go:289–292  ·  view source on GitHub ↗
(factor float64)

Source from the content-addressed store, hash-verified

287}
288
289func (joint *B2MotorJoint) SetCorrectionFactor(factor float64) {
290 B2Assert(B2IsValid(factor) && 0.0 <= factor && factor <= 1.0)
291 joint.M_correctionFactor = factor
292}
293
294func (joint B2MotorJoint) GetCorrectionFactor() float64 {
295 return joint.M_correctionFactor

Callers

nothing calls this directly

Calls 2

B2AssertFunction · 0.85
B2IsValidFunction · 0.85

Tested by

no test coverage detected