Raycasts based on a start position, an end position, and an array of Axis Aligned Bounding Boxes defined by the player.
AABBs are encoded as a table with indicies 1 and 2 being a Vector3.
`{vec(0,0,0),vec(1,0.5,1)}` is a valid AABB, with `{ {vec(0,0,0),vec(1,0.5,1)}, {vec(0,0.5,0.5),vec(1,1,1)} }` being a valid AABB array.
This function returns the AABB table that was hit, the exact position hit as a Vector3, the side of the AABB hit as a string or nil if inside an AABB, and the index of the AABB that was hit in the array 
RaycastAPI.aabb(start: Vector3, end: Vector3, aabbs: Table): Varargs | Method Property | Fluent Description | Representation |
|---|---|---|
| start accepts | typings.2002444080||
| end accepts | typings.2002444080||
| aabbs accepts | typings.80563118||
| Return Value | typings.1901216868
RaycastAPI.aabb(startX: Number, startY: Number, startZ: Number, end: Vector3, aabbs: Table): Varargs | Method Property | Fluent Description | Representation |
|---|---|---|
| startX accepts | typings.-1950496919||
| startY accepts | typings.-1950496919||
| startZ accepts | typings.-1950496919||
| end accepts | typings.2002444080||
| aabbs accepts | typings.80563118||
| Return Value | typings.1901216868
RaycastAPI.aabb(start: Vector3, endX: Number, endY: Number, endZ: Number, aabbs: Table): Varargs | Method Property | Fluent Description | Representation |
|---|---|---|
| start accepts | typings.2002444080||
| endX accepts | typings.-1950496919||
| endY accepts | typings.-1950496919||
| endZ accepts | typings.-1950496919||
| aabbs accepts | typings.80563118||
| Return Value | typings.1901216868
RaycastAPI.aabb(startX: Number, startY: Number, startZ: Number, endX: Number, endY: Number, endZ: Number, aabbs: Table): Varargs | Method Property | Fluent Description | Representation |
|---|---|---|
| startX accepts | typings.-1950496919||
| startY accepts | typings.-1950496919||
| startZ accepts | typings.-1950496919||
| endX accepts | typings.-1950496919||
| endY accepts | typings.-1950496919||
| endZ accepts | typings.-1950496919||
| aabbs accepts | typings.80563118||
| Return Value | typings.1901216868
Raycasts a Block in the world.
If successful, returns the BlockState hit, the exact world position hit as a Vector3, and the side of the block that was hit.
When unsuccessful, returns nil.
blockCastType and fluidCastType determine how the raycast handles block shapes and fluids.
Will default to "COLLIDER" and "NONE" when nil 
RaycastAPI.block(start: Vector3, end: Vector3, blockCastType: String, fluidCastType: String): Varargs | Method Property | Fluent Description | Representation |
|---|---|---|
| start accepts | typings.2002444080||
| end accepts | typings.2002444080||
| blockCastType accepts | typings.-1808118735||
| fluidCastType accepts | typings.-1808118735||
| Return Value | typings.1901216868
RaycastAPI.block(startX: Number, startY: Number, startZ: Number, end: Vector3, blockCastType: String, fluidCastType: String): Varargs | Method Property | Fluent Description | Representation |
|---|---|---|
| startX accepts | typings.-1950496919||
| startY accepts | typings.-1950496919||
| startZ accepts | typings.-1950496919||
| end accepts | typings.2002444080||
| blockCastType accepts | typings.-1808118735||
| fluidCastType accepts | typings.-1808118735||
| Return Value | typings.1901216868
RaycastAPI.block(start: Vector3, endX: Number, endY: Number, endZ: Number, blockCastType: String, fluidCastType: String): Varargs | Method Property | Fluent Description | Representation |
|---|---|---|
| start accepts | typings.2002444080||
| endX accepts | typings.-1950496919||
| endY accepts | typings.-1950496919||
| endZ accepts | typings.-1950496919||
| blockCastType accepts | typings.-1808118735||
| fluidCastType accepts | typings.-1808118735||
| Return Value | typings.1901216868
RaycastAPI.block(startX: Number, startY: Number, startZ: Number, endX: Number, endY: Number, endZ: Number, blockCastType: String, fluidCastType: String): Varargs | Method Property | Fluent Description | Representation |
|---|---|---|
| startX accepts | typings.-1950496919||
| startY accepts | typings.-1950496919||
| startZ accepts | typings.-1950496919||
| endX accepts | typings.-1950496919||
| endY accepts | typings.-1950496919||
| endZ accepts | typings.-1950496919||
| blockCastType accepts | typings.-1808118735||
| fluidCastType accepts | typings.-1808118735||
| Return Value | typings.1901216868
Raycasts an Entity in the world
If successful, returns the EntityAPI hit and the exact world position hit as a Vector3.
When unsuccessful, returns nil.
predicate is a function that prevents specific entities from being raycasted.
Takes in a single EntityAPI object. Return true for valid entities, false for invalid.
Marks all entities as valid when nil 
RaycastAPI.entity(start: Vector3, end: Vector3, predicate: Function): Varargs | Method Property | Fluent Description | Representation |
|---|---|---|
| start accepts | typings.2002444080||
| end accepts | typings.2002444080||
| predicate accepts | typings.1445582840||
| Return Value | typings.1901216868
RaycastAPI.entity(startX: Number, startY: Number, startZ: Number, end: Vector3, predicate: Function): Varargs | Method Property | Fluent Description | Representation |
|---|---|---|
| startX accepts | typings.-1950496919||
| startY accepts | typings.-1950496919||
| startZ accepts | typings.-1950496919||
| end accepts | typings.2002444080||
| predicate accepts | typings.1445582840||
| Return Value | typings.1901216868
RaycastAPI.entity(start: Vector3, endX: Number, endY: Number, endZ: Number, predicate: Function): Varargs | Method Property | Fluent Description | Representation |
|---|---|---|
| start accepts | typings.2002444080||
| endX accepts | typings.-1950496919||
| endY accepts | typings.-1950496919||
| endZ accepts | typings.-1950496919||
| predicate accepts | typings.1445582840||
| Return Value | typings.1901216868
RaycastAPI.entity(startX: Number, startY: Number, startZ: Number, endX: Number, endY: Number, endZ: Number, predicate: Function): Varargs | Method Property | Fluent Description | Representation |
|---|---|---|
| startX accepts | typings.-1950496919||
| startY accepts | typings.-1950496919||
| startZ accepts | typings.-1950496919||
| endX accepts | typings.-1950496919||
| endY accepts | typings.-1950496919||
| endZ accepts | typings.-1950496919||
| predicate accepts | typings.1445582840||
| Return Value | typings.1901216868
listFiles
action_wheel
Action
BlockRaycastTypes