// getBox creates a visible box physics body. func (cr *crtag) getBox(bod vu.Part) { bod.SetScale(2, 2, 2) bod.SetFacade("cube", "gouraud").SetMaterial("sphere") bod.SetBody(vu.Box(1, 1, 1), 1, 0) }
// getBall creates a visible sphere physics body. func (cr *crtag) getBall(bod vu.Part) { bod.SetFacade("sphere", "gouraud").SetMaterial("sphere") bod.SetBody(vu.Sphere(1), 1, 0.5) }