rigidbody.go 509 B

1234567891011121314151617181920
  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 "github.com/g3n/engine/math32"
  6. // RigidBody represents a physics-driven solid body.
  7. type RigidBody struct {
  8. // TODO :)
  9. position math32.Vector3 // World position of the center of gravity
  10. }
  11. // NewRigidBody creates and returns a pointer to a new RigidBody.
  12. func NewRigidBody() *RigidBody {
  13. b := new(RigidBody)
  14. return b
  15. }