UKismetMathLibrary::MakeVector_NetQuantize10
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Builds an FVector_NetQuantize10 (1/10 unit precision) from three components. Used for the Blueprint 'Make' node when a replicated vector needs finer precision than whole units but not full float precision.
Caveats & Gotchas
- • Precision is quantized to the nearest 0.1 unit, not truncated to whole numbers like FVector_NetQuantize — mixing the two types on related properties (e.g. position vs. velocity) can introduce inconsistent rounding between them.
- • Costs more replicated bits than FVector_NetQuantize per component; only use it where the extra precision is actually needed (e.g. slower-moving or small-scale actors).
Signature
static FVector_NetQuantize10 MakeVector_NetQuantize10(double X, double Y, double Z) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| X | double | X component. | — |
| Y | double | Y component. | — |
| Z | double | Z component. | — |
Return Type
FVector_NetQuantize10 Example
Build a quantized vector with decimal precision C++
FVector_NetQuantize10 QuantizedVel = UKismetMathLibrary::MakeVector_NetQuantize10(12.34, -5.67, 0.0);
// Rounds to the nearest 0.1: (12.3, -5.7, 0.0) Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?