POV-Ray : Newsgroups : povray.advanced-users : Truck and trailer : Re: Truck and trailer Server Time
29 Jul 2024 08:14:56 EDT (-0400)
  Re: Truck and trailer  
From: Christoph Hormann
Date: 27 Aug 2002 08:55:12
Message: <3D6B76AD.54ABCE85@gmx.de>
Thomas wrote:
> 
> [...]
> 
> What I meant is how does the angle between the two changes when the
> combination goes through a corner, I would like to animate this. But at the
> moment the trailer moves side ways, which doesn't look particular
> realistic.

If you don't want to do an accurate physical simulation you can start with
some basic rules (for a 2 wheel trailer):

- the wheels of the trailer have a fixed distance to one another.
- the wheels of the trailer have a fixed distance to the link.
- the wheels can only move on the ground in their current direction.
- the wheels' directions are always orthogonal to the line between them.

So all you have to do is take care about these three rules being obeyed
while moving the whole system.  I suppose you have already modelled the
movement of the pulling vehicle so all you have to do is taking the
position of the car-trailer link and applying these rules in many small
steps along the movement path.  And if it doesn't look all right just use
smaller steps.  ;-)

Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 13 Aug. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.