Bounding Box

From OMSIWiki

The bounding box is needed in the geometric data for the configuration of a vehicle.

Application

The bounding box is entered under "[boundingbox]" in the respective .bus-file or .ovh-file of a vehicle. It creates a cubical collision model around the vehicle which ensures that it can collide with the scenery and other objects.

Definition

The bounding box is made up as follows:

Requirementsn

  • Width without outside mirrors in m of the vehicle to be simulated
  • Length in m of the vehicle to be simulated
  • Height in m of the vehicle to be simulated

Procedure

The bounding box is made of six values which are entered in one line each:

  1. Width
  2. Length
  3. Height
  4. Distance of the center of the bounding box from the origin of the local coordinate system on the width axis in m (x)
  5. Distance of the center of the bounding box from the origin of the local coordinate system on the length axis in m (y)
  6. Distance of the center of the bounding box from the origin of the local coordinate system on the height axis in m (z)

Note!

Many maps have at object transitions "invisible walls" where mainly low-lying vehicles get stuck. To avoid this, the height of affected vehicles can be reduced by one meter and the distance of the box to the origin on the z-axis can be increased by one meter.