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