Capsule Trace with Rotation parameter?

Solution:

Create a C++ custom blueprint library; in the header and source files include Kismet System Library, world.h, as well as:

include Runtime\Engine\Private\KismetTraceUtils.cpp
and
include Runtime\Engine\Private\KismetTraceUtils.h

in the source file. Take the original functions for Capsule Trace, add a parameter for rotation. If specifics are needed, look at the syntax in the Box Trace function.

Two more functions will need to be made to replace the trace debugs. Same idea here, declare and define the original functions, but replace the FQuat::Identity with Orientation.Quaternion(), as we don’t want to use an Identity quat.

2 Likes