Skip to main content

BaseCast

This item is only intended to be used by the module's authors. Private

Base class for all Raycast operations.

Functions

Init

BaseCast.Init(
BindableOutputBindableEvent,--

The BindableEvent used for outputting events.

Dataany--

Configuration data for the BaseCast.

) → BaseCast--

The initialized BaseCast instance.

To initialize a new BaseCast instance.

Raycast

BaseCast:Raycast(
OriginVector3,--

The origin of the raycast.

DirectionVector3,--

The direction of the raycast.

VelocityVector3 | number,--

The velocity of the raycast.

BehaviorFastCastBehavior,--

The behavior data for the raycast.

GUIDstring--

The unique identifier for the raycast.

) → ()

Create a raycast.

SetFastCastEventsModule

BaseCast:SetFastCastEventsModule(
moduleScriptModuleScript--

The FastCastEventsModule to set.

) → ()

Blockcast

BaseCast:Blockcast(
OriginVector3,--

The origin of the raycast.

SizeVector3,--

The size of the blockcast.

DirectionVector3,--

The direction of the raycast.

VelocityVector3 | number,--

The velocity of the raycast.

BehaviorFastCastBehavior--

The behavior data for the raycast.

) → ()

Create a Blockcast.

BindBulkMoveTo

BaseCast:BindBulkMoveTo(
boolboolean--

Whether to enable or disable BulkMoveTo.

) → ()

Enables or disables the BulkMoveTo feature.

BindObjectCache

BaseCast:BindObjectCache(
boolboolean--

Whether to enable or disable ObjectCache.

) → ()

Enables or disables the ObjectCache feature.

Destroy

BaseCast:Destroy() → ()

Destroys the BaseCast instance and cleans up resources.

Show raw api
{
    "functions": [
        {
            "name": "Init",
            "desc": "To initialize a new BaseCast instance.",
            "params": [
                {
                    "name": "BindableOutput",
                    "desc": "The BindableEvent used for outputting events.",
                    "lua_type": "BindableEvent"
                },
                {
                    "name": "Data",
                    "desc": "Configuration data for the BaseCast.",
                    "lua_type": "any"
                }
            ],
            "returns": [
                {
                    "desc": "The initialized BaseCast instance.",
                    "lua_type": "BaseCast"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 103,
                "path": "src/FastCast2/BaseCast.luau"
            }
        },
        {
            "name": "Raycast",
            "desc": "Create a raycast.",
            "params": [
                {
                    "name": "Origin",
                    "desc": "The origin of the raycast.",
                    "lua_type": "Vector3"
                },
                {
                    "name": "Direction",
                    "desc": "The direction of the raycast.",
                    "lua_type": "Vector3"
                },
                {
                    "name": "Velocity",
                    "desc": "The velocity of the raycast.",
                    "lua_type": "Vector3 | number"
                },
                {
                    "name": "Behavior",
                    "desc": "The behavior data for the raycast.",
                    "lua_type": "FastCastBehavior"
                },
                {
                    "name": "GUID",
                    "desc": "The unique identifier for the raycast.",
                    "lua_type": "string"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 171,
                "path": "src/FastCast2/BaseCast.luau"
            }
        },
        {
            "name": "SetFastCastEventsModule",
            "desc": "",
            "params": [
                {
                    "name": "moduleScript",
                    "desc": "The FastCastEventsModule to set.",
                    "lua_type": "ModuleScript"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 208,
                "path": "src/FastCast2/BaseCast.luau"
            }
        },
        {
            "name": "Blockcast",
            "desc": "Create a Blockcast.",
            "params": [
                {
                    "name": "Origin",
                    "desc": "The origin of the raycast.",
                    "lua_type": "Vector3"
                },
                {
                    "name": "Size",
                    "desc": "The size of the blockcast.",
                    "lua_type": "Vector3"
                },
                {
                    "name": "Direction",
                    "desc": "The direction of the raycast.",
                    "lua_type": "Vector3"
                },
                {
                    "name": "Velocity",
                    "desc": "The velocity of the raycast.",
                    "lua_type": "Vector3 | number"
                },
                {
                    "name": "Behavior",
                    "desc": "The behavior data for the raycast.",
                    "lua_type": "FastCastBehavior"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 226,
                "path": "src/FastCast2/BaseCast.luau"
            }
        },
        {
            "name": "BindBulkMoveTo",
            "desc": "Enables or disables the BulkMoveTo feature.",
            "params": [
                {
                    "name": "bool",
                    "desc": "Whether to enable or disable BulkMoveTo.",
                    "lua_type": "boolean"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 264,
                "path": "src/FastCast2/BaseCast.luau"
            }
        },
        {
            "name": "BindObjectCache",
            "desc": "Enables or disables the ObjectCache feature.",
            "params": [
                {
                    "name": "bool",
                    "desc": "Whether to enable or disable ObjectCache.",
                    "lua_type": "boolean"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 285,
                "path": "src/FastCast2/BaseCast.luau"
            }
        },
        {
            "name": "Destroy",
            "desc": "Destroys the BaseCast instance and cleans up resources.",
            "params": [],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 310,
                "path": "src/FastCast2/BaseCast.luau"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "BaseCast",
    "desc": "Base class for all Raycast operations.",
    "private": true,
    "source": {
        "line": 28,
        "path": "src/FastCast2/BaseCast.luau"
    }
}