예제 #1
0
// 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))
}
예제 #2
0
파일: chipmunk.go 프로젝트: andrebq/exp
func (s *Space) SetSleepTimeThreshold(value float32) {
	C.cpSpaceSetSleepTimeThreshold(s.s, f(value))
}