RaycastParams.new
Creates a raycast parameter table.
Syntax
RaycastParams.new() -> RaycastParams
Parameters
This function takes no parameters.
Returns
| Type | Description |
|---|---|
RaycastParams | A 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:Raycastis not currently implemented in the VM.FilterTypedefaults to0(Exclude).