Web Update 19.10.2024

Orientation

You are here:
Estimated reading time: 1 min

The orientation data is used to rotate the model to a certain angle, but it is not in degrees, but in radians. A radian is similar to a degree — a unit for measuring the size of angles. It is defined on the unit circle and its size corresponds to the central angle of an arc whose length is equal to the radius of the given arc. We will first answer the question of how many radians correspond to the whole circle, i.e. how many radians correspond to 360 degrees. We know that the arc length in radian is just the radius of the circle.

mesh-table
{
  default
  {
    auto-create                         1
    mesh                                "lod.lm"
  }
  
  default-night
  {
    mesh                                "night/night.trainzmesh"
    night-mesh-base                     "default"
  }
  
  klimatizace
  {
    auto-create                         1
    mesh                                "klimatizace/model.lm"
    mesh-asset                          <kuid:383363:101633>
    position                            6.5,5,4.5
    orientation                         0,0,1.570797
  }
}

Here are some basic angles converted to radians:

45° = 0.7853985 rad

90° = 1.570797 rad

180° = 3.141594 rad

270° = 4.712391 rad

How to read 0,0,0 >>> x,y,z

π/6 = 30°

π/4 = 45°

π/3 = 60°

π/2 = 90°

π = 180°

3π/2 = 270°

2π = 360°

Was this article helpful?
Dislike 0 0 of 0 found this article helpful.
Views: 17
Alpinetrainz
Logo
Shopping cart