Shape traces

You can also use shapes to do the traces. There are trace Functions for the sphere, capsule, and box shapes, but these Functions are more expensive to perform than line traces.

For all these shapes, there are Functions to trace by channel and by object type. There are also Functions that return a single hit or multiple hits.

The next screenshot shows the SphereTraceForObjects, CapsuleTraceForObjects, and BoxTraceForObjects Functions:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset