script fixes; revived dungeon generator script;

This commit is contained in:
turanszkij
2019-04-09 23:40:35 +01:00
parent f6f0be47ea
commit 8db10d2f90
5 changed files with 209 additions and 4 deletions
+2 -1
View File
@@ -473,13 +473,14 @@ A ray is defined by an origin Vector and a normalized direction Vector. It can b
#### AABB
Axis Aligned Bounding Box. Can be intersected with other primitives.
- [constructor]AABB(Vector min,max)
- Intersects(AABB aabb) : int result -- result can be 0 (outside, no intersection), 1 (intersection), 2 (completely inside)
- Intersects(AABB aabb) : bool result
- Intersects(Sphere sphere) : bool result
- Intersects(Ray ray) : bool result
- GetMin() : Vector result
- GetMax() : Vector result
- GetCenter() : Vector result
- GetHalfExtents() : Vector result
- Transform(Matrix matrix) : AABB result -- transforms the AABB with a matrix and returns the resulting conservative AABB
#### Sphere
Sphere defined by center Vector and radius. Can be intersected with other primitives.