::hwat::core::FindDeltaXForAngledBarrier - Finds the distance to offset the center of the angled barrier from the mid Y position of the vehicle along the x axis such that the barrier just touches the vehicle.
::hwat::core::FindDeltaXForAngledBarrier d_vehicleDims d_angle [str_assemName] [str_bcicType]
d_vehicleDims |
A Tcl list containing the vehicle dimensions, of the form MinX, MinY, MinZ, MaxX, MaxY, MaxZ. |
d_angle |
The angle of the barrier. |
str_assemName |
The assembly name of the vehicle (default = VEHICLE). |
str_bcicType |
The BCIC type (default = FRONT). Only FRONT and REAR are currently supported. Optional. |
The offset distance if successful, {} otherwise.
::hwat::core::FindDeltaXForAngledBarrier [list 0.0 0.0 0.0 5000.0 1500.0 2000] -45.0 VEHICLE FRONT
The user has to add the required gap to the offset.