示例#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))
}