UKismetMathLibrary::IntPoint_Up
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticBlueprintPureUFUNCTION
Description
Returns the constant FIntPoint representing the Up direction (0, -1) in 2D integer grid space. Useful for grid-based traversal where Y increases downward.
Caveats & Gotchas
- • In UE's standard 2D screen/grid convention Y increases downward, so 'Up' is (0, -1) — not (0, 1). This can be counterintuitive if you are used to math-space coordinates.
- • This is a pure constant with no parameters; there is no normalisation or magnitude to worry about, but be aware the result has integer precision only.
Signature
static UE_INL_API FIntPoint IntPoint_Up(); Return Type
FIntPoint Example
Move a tile cursor up on a grid C++
FIntPoint CursorPos = FIntPoint(3, 5);
CursorPos += UKismetMathLibrary::IntPoint_Up(); // CursorPos becomes (3, 4) See Also
Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?