RoRBook/Props

From Rigs of Rods Wiki

Jump to:navigation, search
Note: Tutorials marked red are currently not available!
  1. Introduction
  2. Working Environment
  3. Land-based Vehicles and Basics
    1. Basic Requirements
    2. First Beams/Nodes
    3. Rigidity
    4. Wheels
    5. Engine
    6. Suspension
    7. Steering
    8. Commands
    9. Hooks
    10. Submeshes
    11. Flares
    12. Props
    13. Details
  4. Objects and Texturing
    1. Meshes
      1. Tools
      2. Basic Rules
    2. Materials
    3. Flexbodies
  5. Aircraft and Winged Vehicles
    1. Simple Aircraft
    2. Wings
    3. Fusedrag
    4. Engines
      1. Props
      2. Jets
  6. Nautical Vehicles and Boats
    1. Simple Boats
    2. Engines
  7. Packaging

How to add a beacon to a truck

I'll put a beacon on the crate in this tutorial because these objects are very good to show the basic way of placing a prop, it works the same way with any other mesh and node/beam object.

First open the .load file in the editorizer to see the node numbers. You need three nodes that form a 90° angle, it works with other angles too but the offset settings become difficult then.

Beacontut1.jpg

Open the file in notepad and look for the props section, if there is none you need to create it:

props
;ref,x,y,offsetx,offsety,offsetz,rotx,roty,rotz,mesh
   7,6,5,    0.5,    0.5,      0,   0,   0,   0,beacon.mesh

What each parameter means:

  • ref: Reference node, the center node of the 90° angle, 7 in my example
  • x: Reference node in x direction, one node of the angle, x is the direction you set in the offset.
  • y: Reference node in y direction, the second node of the angle, it defines the y direction.
  • offsetx: the place in between ref and x where your prop will be, 0.5 is in the middle, 0 is at ref, 1 is at x.
  • offsety: the place in between ref and y where the prop will be, it works like offsetx but in the direction ref-y.
  • offsetz: the height above the crate in this case, this value is given in meters and not depending on the node distances.
  • rotx: rotation around the x axis
  • roty: rotation around the y axis
  • rotz: rotation around the z axis
  • mesh: the name of the mesh you want to place

The test setup will look like this in RoR:

Beacontut2.jpg

The Beacon is in the middle of the crate because x and y settings are both 0.5, but it does not have the right rotation. It needs to be rotated around the x axis:

props
;ref,x,y,offsetx,offsety,offsetz,rotx,roty,rotz,mesh
   7,6,5,    0.5,    0.5,      0, -90,   0,   0,beacon.mesh

Beacontut3.jpg

You probably need some trial and error until you find the right axis, this can be tricky sometimes. If you can rotate your mesh in a 3d-program like SketchUp or Blender it might be easier to rotate it there and to use 0,0,0 for the rotation. Some tips to find the right rotation: try 0,0,0 first, and look how much rotation is necessary, in most cases 90° is enough. try 90,0,0, then 0,0,0, then 0,0,90, don't rotate on two axises at once.

That's basically all about placing meshes. The mesh will be attached to this three nodes, if they move or get ripped off the vehicle the mesh will move with them and keep it's offsets.



About Rigs of Rods

    Rigs of Rods is a unique soft body physics simulator.


Some Tools


Partners

SourceForge.net

Follow us

Twitter youtube Facebook RSS Feed


impressum