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