mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-05 18:36:21 +00:00
15 lines
322 B
Haxe
15 lines
322 B
Haxe
package octree;
|
|
|
|
import h3d.Vector;
|
|
import h3d.col.Bounds;
|
|
|
|
typedef RayIntersectionData = {
|
|
var point:Vector;
|
|
var normal:Vector;
|
|
var object:IOctreeObject;
|
|
}
|
|
|
|
interface IOctreeObject extends IOctreeElement {
|
|
var boundingBox:Bounds;
|
|
function rayCast(rayOrigin:Vector, rayDirection:Vector):Array<RayIntersectionData>;
|
|
}
|