particle.go 735 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2016 The G3N Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package physics
  5. //import (
  6. // "github.com/g3n/engine/math32"
  7. // "github.com/g3n/engine/graphic"
  8. //)
  9. //
  10. //// Particle represents a physics-driven particle.
  11. //type Particle struct {
  12. // Body
  13. // mass float32
  14. // radius float32
  15. // position math32.Vector3
  16. // velocity math32.Vector3
  17. // //netForce math32.Vector3
  18. // colliding bool
  19. //}
  20. //
  21. //// NewParticle creates and returns a pointer to a new Particle.
  22. //func NewParticle(igraphic graphic.IGraphic) *Particle {
  23. //
  24. // p := new(Particle)
  25. // p.Graphic = igraphic.GetGraphic()
  26. // p.mass = 1
  27. // p.radius = 1
  28. // return p
  29. //}