RaycastParams
Configures filtering and collision behavior for ray and shape casts.
Behavior
RaycastParams configures filtering and collision behavior for ray and shape casts.
Summary
BruteForceAllSlow: booleanWhether to use the slower exhaustive query path instead of the normal spatial acceleration structure.
CollisionGroup: stringThe collision group used to filter query candidates.
FilterDescendantsInstances: tableThe Instances whose descendants are included or excluded by FilterType.
Whether the descendant filter includes or excludes the specified hierarchies.
IgnoreWater: booleanWhether the cast ignores water.
RespectCanCollide: booleanWhether the query uses collision eligibility rather than query eligibility.
AddToFilter(instances: Instance | { Instance }): ()Appends an Instance or array of Instances to the descendant filter.
Constructors
new
RaycastParams.new(): RaycastParamsCreates a mutable set of spatial-query options.
Properties
BruteForceAllSlow
RaycastParams.BruteForceAllSlow: booleanWhether to use the slower exhaustive query path instead of the normal spatial acceleration structure.
CollisionGroup
RaycastParams.CollisionGroup: stringThe collision group used to filter query candidates.
FilterDescendantsInstances
RaycastParams.FilterDescendantsInstances: tableThe Instances whose descendants are included or excluded by FilterType.
FilterType
RaycastParams.FilterType: EnumItemWhether the descendant filter includes or excludes the specified hierarchies.
IgnoreWater
RaycastParams.IgnoreWater: booleanWhether the cast ignores water.
RespectCanCollide
RaycastParams.RespectCanCollide: booleanWhether the query uses collision eligibility rather than query eligibility.
Methods
AddToFilter
Appends an Instance or array of Instances to the descendant filter.
Operators
__tostring · __type