struct MeshTraceRequest

robot_2Generated
code_blocksInput

Description

The MeshTraceRequest struct is part of the Sandbox.Engine.Utility.RayTrace namespace. It is used to perform ray tracing operations on meshes, allowing for the detection of intersections and hits within a 3D environment. This struct provides methods to configure and execute ray tracing requests, including filtering by tags.

Members

Instance Methods

Member NameSummary
RunRun the trace and return the result. The result will return the first hit.
Ray(Vector3&, Vector3&)Configure the ray trace request using a start and end point.
Ray(Ray&, Single&)Configure the ray trace request using a ray and a distance.
WithTagFilter the trace request to include only objects with the specified tag.
WithAllTagsFilter the trace request to include only objects with all specified tags.
WithAnyTagsFilter the trace request to include objects with any of the specified tags.
WithoutTagsFilter the trace request to exclude objects with the specified tags.