collision

package
v0.0.0-...-eed3b2b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RayCastResult

type RayCastResult struct {
	T     float64
	Hit   bool
	Point mgl32.Vec3
}

func RayIntersectsAxisAlignedBoundingBox

func RayIntersectsAxisAlignedBoundingBox(origin, direction, min, max mgl32.Vec3) (r RayCastResult)

RayIntersectsAxisAlignedBoundingBox determines whether ray intersects an axis-aligned bounding box. taken from https://github.com/Galaco/kero/blob/dedc4e04e830cc2597308cbfe9e9bcbe30491fae/physics/collision/ray.go#L73

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL