Yuari
Documentation
Docs/Data types/RaycastParams.new

RaycastParams.new

Creates a raycast parameter table.

Syntax

RaycastParams.new() -> RaycastParams

Parameters

This function takes no parameters.

Returns

TypeDescription
RaycastParamsA table with the standard raycast fields.

Description

The returned table contains FilterDescendantsInstances, FilterType, IgnoreWater, CollisionGroup, RespectCanCollide and BruteForceAllSlow.

It is provided for script compatibility while the raycast call itself is not exposed.

Example

local params = RaycastParams.new()
params.FilterDescendantsInstances = { workspace.Model }
params.IgnoreWater = true

Notes

  • workspace:Raycast is not currently implemented in the VM.
  • FilterType defaults to 0 (Exclude).