Example #1
// SetCollisionSlop sets amount of encouraged penetration between colliding shapes.
// Used to reduce oscillating contacts and keep the collision cache warm.
// Defaults to 0.1. If you have poor simulation quality,
// increase this number as much as possible without allowing visible amounts of overlap.
func (s *Space) SetCollisionSlop(sl float64) {
	C.cpSpaceSetCollisionSlop(s.c(), C.cpFloat(sl))
Example #2
func (s *Space) SetCollisionSlop(value float32) {
	C.cpSpaceSetCollisionSlop(s.s, f(value))