struct
MeshTraceRequest
public sealed struct MeshTraceRequest Methods
Result Run() Run the trace and return the result. The result will return the first hit.
Result[] RunAll() MeshTraceRequest Ray(Vector3 from, Vector3 to) Casts a ray from point A to point B.
MeshTraceRequest Ray(Ray ray, Single distance) Casts a ray from a given position and direction, up to a given distance.
MeshTraceRequest WithTag(String tag) Only return scene objects with this tag. Subsequent calls to this will add multiple requirements and they'll all have to be met (ie, the scene object will need all tags).
MeshTraceRequest WithAllTags(String[] tags) Only return scene objects with all of these tags
MeshTraceRequest WithAnyTags(String[] tags) Only return scene objects with any of these tags
MeshTraceRequest WithoutTags(String[] tags) Only return scene objects without any of these tags
Assembly:
Sandbox.Engine Namespace: Sandbox.Engine.Utility.RayTrace Full Name: Sandbox.Engine.Utility.RayTrace.MeshTraceRequest