Skip to main content

FastCastSerial

FastCastSerial is the serial caster class that runs all cast simulations on the main thread.

Functions

Init

FastCastSerial:Init(
useBulkMoveToboolean,--

Whether to use BulkMoveTo for projectile movement.

useObjectCacheboolean,--

Whether to use ObjectCache.

TemplateBasePart | Model?,--

Template for ObjectCache.

CacheSizenumber?,--

Size of ObjectCache.

CacheHolderInstance?--

Parent for cached objects.

) → ()

Initialize the Serial Caster.

RaycastFire

FastCastSerial:RaycastFire() → ()

BlockcastFire

FastCastSerial:BlockcastFire() → ()

SpherecastFire

FastCastSerial:SpherecastFire() → ()

SetObjectCacheEnabled

FastCastSerial:SetObjectCacheEnabled() → ()

Destroy

FastCastSerial:Destroy() → ()
Show raw api
{
    "functions": [
        {
            "name": "Init",
            "desc": "Initialize the Serial Caster.",
            "params": [
                {
                    "name": "useBulkMoveTo",
                    "desc": "Whether to use BulkMoveTo for projectile movement.",
                    "lua_type": "boolean"
                },
                {
                    "name": "useObjectCache",
                    "desc": "Whether to use ObjectCache.",
                    "lua_type": "boolean"
                },
                {
                    "name": "Template",
                    "desc": "Template for ObjectCache.",
                    "lua_type": "BasePart | Model?"
                },
                {
                    "name": "CacheSize",
                    "desc": "Size of ObjectCache.",
                    "lua_type": "number?"
                },
                {
                    "name": "CacheHolder",
                    "desc": "Parent for cached objects.",
                    "lua_type": "Instance?"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 456,
                "path": "src/init.luau"
            }
        },
        {
            "name": "RaycastFire",
            "desc": "",
            "params": [],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 497,
                "path": "src/init.luau"
            }
        },
        {
            "name": "BlockcastFire",
            "desc": "",
            "params": [],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 517,
                "path": "src/init.luau"
            }
        },
        {
            "name": "SpherecastFire",
            "desc": "",
            "params": [],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 538,
                "path": "src/init.luau"
            }
        },
        {
            "name": "SetObjectCacheEnabled",
            "desc": "",
            "params": [],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 574,
                "path": "src/init.luau"
            }
        },
        {
            "name": "Destroy",
            "desc": "",
            "params": [],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 595,
                "path": "src/init.luau"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "FastCastSerial",
    "desc": "FastCastSerial is the serial caster class that runs all cast simulations on the main thread.",
    "source": {
        "line": 104,
        "path": "src/init.luau"
    }
}