Example #1
0
// SetFriction sets coefficient of friction.
func (s shapeBase) SetFriction(f float64) {
	C.cpShapeSetFriction(s.c(), C.cpFloat(f))
}
Example #2
0
func (s *Shape) SetFriction(val float32) {
	C.cpShapeSetFriction(s.shape, f(val))
}