Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/UProjectionHelper
References
| Module | LearningAgents |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsHelpers.h |
| Include | #include "LearningAgentsHelpers.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsHelpers.cpp |
UFUNCTION&40;BlueprintPure&61;false, Category&61;"LearningAgents", Meta&61;&40;AgentId&61;"&45;1"&41;&41;
void ProjectPositionRotationOntoGroundPlane
&40;
FVector & OutPosition,
FRotator & OutRotation,
const int32 AgentId,
const FVector InPosition,
const FRotator InRotation,
const FVector LocalForwardVector
&41; const
Remarks
Projects a position and rotation onto the zero height ground plane resulting in translation only in XY and rotation only around the Z.
Parameters
| Name | Description |
|---|---|
| OutPosition | The output projected position. |
| OutRotation | The output projected rotation. |
| AgentId | The agent id to run the helper for. |
| InPosition | The input position. |
| InRotation | The input rotation. |
| LocalForwardVector | The local forward direction. |