예제 #1
0
파일: eng.go 프로젝트: krattai/monoflow
// 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))
}
예제 #2
0
파일: eng.go 프로젝트: krattai/monoflow
// 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))
}