// SetElasticity sets coefficient of restitution. func (s shapeBase) SetElasticity(e float64) { C.cpShapeSetElasticity(s.c(), C.cpFloat(e)) }
func (s *Shape) SetElasticity(val float32) { C.cpShapeSetElasticity(s.shape, f(val)) }