Page MenuHomeFeedback Tracker

Transport trucks velocity not <0, 0, 0> when stationary
Closed, ResolvedPublic

Description

Ural Transport and M932 Transport trucks velocity values not <0, 0, 0> when entities stationary.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10
Category
General
Steps To Reproduce

Physics physics = vehicle.GetPhysics();
vector vel = physics.GetVelocity();
Print(vel);

Additional Information

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

HTom created this task.Nov 1 2022, 3:56 PM
HTom edited Additional Information. (Show Details)Nov 1 2022, 8:26 PM
Geez changed the task status from New to Awaiting internal Testing.Nov 2 2022, 10:22 AM
Geez closed this task as Resolved.Apr 4 2024, 1:40 PM
Geez claimed this task.
Geez added a subscriber: Geez.

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