Ural Transport and M932 Transport trucks velocity values not <0, 0, 0> when entities stationary.
Description
Details
- Severity
- Minor
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10
- Category
- General
Physics physics = vehicle.GetPhysics();
vector vel = physics.GetVelocity();
Print(vel);
UAZ and Command Ural: vector vel = <0,0,0> on every runs.
Ural Transport and M923 Transport always changing but not <0, 0, 0>
SCRIPT : vector vel = <1.72192e-06,1.03684e-05,2.33319e-06>
SCRIPT : vector vel = <1.32898e-06,-3.6522e-06,2.28977e-06>
SCRIPT : vector vel = <3.20589e-06,1.13726e-05,-8.36084e-07>
SCRIPT : vector vel = <2.15404e-06,8.61979e-06,2.65966e-06>
SCRIPT : vector vel = <1.81547e-06,9.5876e-06,2.59847e-06>
SCRIPT : vector vel = <-2.36076e-06,-9.02479e-06,-1.83058e-06>
Event Timeline
Hello HTom.
This is standard floating point issue. Scripter has to compare length of the returned vector to some threshold, for example velocity.Length() < 0.1