示例#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))
}