Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/TFrame3
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/FrameTypes.h |
| Include | #include "FrameTypes.h" |
void ConstrainedAlignAxis
&40;
int AxisIndex,
const TVector< RealType > & ToDirection,
const TVector< RealType > & AroundVector
&41;
Remarks
Compute rotation around vector that best-aligns axis of frame with target direction
Parameters
| Name | Description |
|---|---|
| AxisIndex | which axis to try to align |
| ToDirection | target direction |
| AroundVector | rotation is constrained to be around this vector (ie this direction in frame stays constant) |