コード例 #1
0
ファイル: shape.go プロジェクト: ianremmler/chipmunk
// 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))
}