Grid traversal (Amanatides & Woo) through a VoxelQuery.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
barrier(
VoxelQuery q, Vector3 origin, Vector3 direction, double reachDist, {bool fenceBarrier = false}) → double? -
How far along the ray the first collision box stands — the first thing
that would stop a body — or null when the line is clear for
reachDist. -
liquid(
VoxelQuery q, Vector3 origin, Vector3 direction, double reachDist) → IVec3? -
The first liquid cell along the ray, stopping at the first solid block;
null when there is none within
reachDist. -
solid(
VoxelQuery q, Vector3 origin, Vector3 direction, double reachDist) → RayHit? -
The first cell along the ray holding a block that is neither air nor a
liquid, within
reachDist; null when there is none.