contact.go 444 B

123456789101112131415
  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 collision implements collision related algorithms and data structures.
  5. package collision
  6. import "github.com/g3n/engine/math32"
  7. // Contact describes a contact point, normal, and depth.
  8. type Contact struct {
  9. Point math32.Vector3
  10. Normal math32.Vector3
  11. Depth float32
  12. }