UKismetMathLibrary::MakeVector_NetQuantize100
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Builds an FVector_NetQuantize100 (1/100 unit precision) from three components. Used for the Blueprint 'Make' node when a replicated vector needs sub-centimeter precision, such as fine physics state.
Caveats & Gotchas
- • This is the highest-precision NetQuantize variant and therefore also the most expensive to replicate — using it for every replicated vector defeats the purpose of quantization as a bandwidth optimization.
- • Precision rounds to 1/100 of a unit; values are still quantized, not full double precision, so repeated round-trips through this type can accumulate small drift.
Signature
static FVector_NetQuantize100 MakeVector_NetQuantize100(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_NetQuantize100 Example
Build a high-precision quantized vector C++
FVector_NetQuantize100 QuantizedPos = UKismetMathLibrary::MakeVector_NetQuantize100(1523.456, -840.219, 96.003);
// Rounds to the nearest 0.01: (1523.46, -840.22, 96.0) Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?