示例#1
0
// SetFriction sets coefficient of friction.
func (s shapeBase) SetFriction(f float64) {
	C.cpShapeSetFriction(s.c(), C.cpFloat(f))
}
示例#2
0
文件: chipmunk.go 项目: andrebq/exp
func (s *Shape) SetFriction(val float32) {
	C.cpShapeSetFriction(s.shape, f(val))
}