Exemple #1
0
Fichier : cr.go Projet : toophy/vu
// getBox creates a visible box physics body.
func (cr *crtag) getBox(p vu.Pov) {
	p.SetScale(2, 2, 2)
	p.NewBody(vu.NewBox(1, 1, 1))
	p.SetSolid(1, 0)
	p.NewModel("gouraud").LoadMesh("cube").LoadMat("sphere")
}