contact.go 362 B

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