Documentation ¶
Index ¶
- Constants
- func AttractionForceImpulse(p1, p2 internal.Vector, m1, m2 float64, timestep float64) internal.Vector
- func AttractionForceVector(p1, p2 internal.Vector, m1, m2 float64, force float64) internal.Vector
- func Colliding(o1, o2 Object) (float64, bool)
- func CollisionTime(n1, n2 Object) float64
- func Reflect(o1, o2 *Object)
- type Object
Constants ¶
View Source
const (
G = 8.8e-1
)
Variables ¶
This section is empty.
Functions ¶
func AttractionForceImpulse ¶
func AttractionForceVector ¶
func CollisionTime ¶
CollisionTime calculates the timestep at which the two objects will collide
Types ¶
type Object ¶
func (*Object) BoundingBox ¶
func (o *Object) BoundingBox() internal.BoundingBox
func (*Object) KineticEnergy ¶
func (*Object) ReflectBounds ¶
func (o *Object) ReflectBounds(bb internal.BoundingBox)
Click to show internal directories.
Click to hide internal directories.