Page cover

Traces

There are 2 main types of traces. Line trace and Sphere trace, each of them has their own version of the functions bellow that can be used in different situations

Trace to Screen Center by Channel

Does a collision trace and returns the first blocking hit encountered.

  • This trace finds the objects that RESPONDS to the given TraceChannel

Trace to Screen Center by Profile

Trace a ray against the world using a specific profile and return the first blocking hit.

  • This trace finds the objects that RESPONDS to the given collision profile

Trace to Screen Center for Objects

Does a collision trace along the given line and returns the first hit encountered.

  • This only finds objects that are of a type specified by ObjectTypes.

Multi Trace to Screen Center by Channel

Does a collision trace along the given line and returns all hits encountered up to and including the first blocking hit. (Stops on the first blocking hit)

  • This trace finds the objects that RESPOND to the given Trace Channel

Multi Trace to Screen Center by Profile

Trace a ray against the world using a specific profile and return overlapping hits and then first blocking hit (Stops on the first blocking hit)

  • This trace finds the objects that RESPONDS to the given Collision Profile

Multi Trace to Screen Center for Objects

Does a collision trace along the given line and returns all hits encountered.

  • This only finds objects that are of a type specified by ObjectTypes

Last updated