Skip to content

Commit

Permalink
Added RaycastParams missing properties (#1058)
Browse files Browse the repository at this point in the history
+ Added `RespectCanCollide` property
+ Added `BruteForceAllSlow` property
  • Loading branch information
PepeElToro41 authored Oct 17, 2023
1 parent 1ad8cfc commit a7e7f82
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/roblox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2048,6 +2048,16 @@ interface RaycastParams {
* property is omitted, the raycast will assume the **Default** collision group.
*/
CollisionGroup: string;
/**
* This property, if `true`, makes the raycast operation use an intersected part's `CanCollide` value in favor of
* its `CanQuery` value when determining whether that part is included in the `RaycastResult`
*/
RespectCanCollide: boolean;
/**
* When enabled, the query will ignore all part collision properties and perform a brute-force check on every part.
* This will negatively impact performance and should not be used in live experiences.
*/
BruteForceAllSlow: boolean;
/**
* For efficiency and simplicity, this method is the preferred way to add instances to the filter.
* It has the additional advantage that it allows FilterDescendantsInstances to be updated from a parallel context.
Expand Down

0 comments on commit a7e7f82

Please sign in to comment.