Avorion Script API Documentation

PlanBspTree

function PlanBspTree(BlockPlan plan)

Returns

A new instance of PlanBspTree

function int... getBlocksByBox(Box box)

function int... getBlocksByOrientedBox(Box box, Matrix boxOrientation)

function int... getBlocksByRay(Ray ray, float t0, float t1)

function int... getBlocksBySphere(Sphere sphere)

function int, vec3 intersectRay(Ray ray, float t0, float t1)

Intersects the given ray with the plan. This happens in the space of the plan.

Parameters

ray The ray used to intersect.
t0
t1

Returns

nil if no intersection happened, or block index as first and intersection location as second return value

function bool intersectsBox(Box box, var exceptionIndex)

function bool intersectsSphere(Sphere sphere, var exceptionIndex)

Overview
Home Functions Search
Search:

This is the official documentation for the scripting API of Avorion. This documentation is automatically generated and not necessarily complete. Depending on the context in which functions exist, some documentation such as descriptions, return values or variable names or types may be missing.

Work in Progress. Documentation of Avorion Version: 2.5.7 c8e4beec84f7