// SetSleepTimeThreshold sets the time a group of bodies must remain idle in order to fall asleep. // Enabling sleeping also implicitly enables the the contact graph. // The default value of math.Inf(1) disables the sleeping algorithm. func (s *Space) SetSleepTimeThreshold(t float64) { C.cpSpaceSetSleepTimeThreshold(s.c(), C.cpFloat(t)) }
func (s *Space) SetSleepTimeThreshold(value float32) { C.cpSpaceSetSleepTimeThreshold(s.s, f(value)) }