Esempio n. 1
0
// Sphere creates a ball shaped physics body located at the origin.
// The sphere size is set by the radius.
func Sphere(radius float64) move.Body {
	return move.NewBody(move.NewSphere(radius))
}
Esempio n. 2
0
// Box creates a box shaped physics body located at the origin.
// The box size is w=2*hx, h=2*hy, d=2*hz.
func Box(hx, hy, hz float64) move.Body {
	return move.NewBody(move.NewBox(hx, hy, hz))
}