AABB

gdext.builtin.AABB
See theAABB companion object
final case class AABB(position: Vector3, size: Vector3)

Godot's AABB: an axis-aligned box, position and size (24 bytes).

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def *(t: Transform3D): AABB

AABB * Transform3D: the inverse transform of this box.

AABB * Transform3D: the inverse transform of this box.

Attributes

def abs: AABB
def encloses(o: AABB): Boolean
def end: Vector3
def expand(toPoint: Vector3): AABB
def getEndpoint(idx: Long): Vector3

Corner idx (0-7); bit 2 picks max x, bit 1 max y, bit 0 max z.

Corner idx (0-7); bit 2 picks max x, bit 1 max y, bit 0 max z.

Attributes

def getLongestAxisSize: Float
def getShortestAxisSize: Float
def getSupport(direction: Vector3): Vector3
def getVolume: Float
def grow(by: Float): AABB
def hasPoint(point: Vector3): Boolean
def hasSurface: Boolean
def hasVolume: Boolean
def intersects(o: AABB): Boolean
def intersectsPlane(plane: Plane): Boolean
def intersectsRay(from: Vector3, dir: Vector3): Option[Vector3]

Where the ray from from along dir enters this box, if it does. A ray that starts inside reports its entry point behind from.

Where the ray from from along dir enters this box, if it does. A ray that starts inside reports its entry point behind from.

Attributes

def intersectsSegment(from: Vector3, to: Vector3): Option[Vector3]

Where the segment from-to enters this box, if it does.

Where the segment from-to enters this box, if it does.

Attributes

def isEqualApprox(aabb: AABB): Boolean
def isFinite: Boolean
def merge(o: AABB): AABB

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product