POV-Ray : Newsgroups : povray.advanced-users : Truck and trailer Server Time
29 Jul 2024 10:28:57 EDT (-0400)
  Truck and trailer (Message 1 to 10 of 35)  
Goto Latest 10 Messages Next 10 Messages >>>
From: Thomas
Subject: Truck and trailer
Date: 27 Aug 2002 06:45:11
Message: <web.3d6b57f7612a00a4bbe30ae0@news.povray.org>
Hello all,

How does a trailer follow the car/truck that is pulling it through bends, is
there some magic formula for it? All I can figure out is that the angle
between the two is related to the length of the trailer but beyond that I'm
a bit lost.

Is it clear what I'm asking?

TIA,

Thomas


Post a reply to this message

From: Pandora
Subject: Re: Truck and trailer
Date: 27 Aug 2002 07:29:58
Message: <3d6b62b6@news.povray.org>
"Thomas" <tho### [at] gmxnet> wrote in message
news:web.3d6b57f7612a00a4bbe30ae0@news.povray.org...
> Hello all,
>
> How does a trailer follow the car/truck that is pulling it through bends,

    The trailer is physically attached to the car/truck.

> is there some magic formula for it?

    No. It's all down to the physical connection between the two, no 'magic'
is
required. In fact you do know magic doesn't actually exist don't you ?

;)

(sorry, couldn't resist...)
--
Pandora/Scott Hill/[::O:M:C::]Scorpion
Software Engineer.
http://www.pandora-software.com


Post a reply to this message

From: Thomas
Subject: Re: Truck and trailer
Date: 27 Aug 2002 07:40:05
Message: <web.3d6b64e6a31ba4aabbe30ae0@news.povray.org>
Pandora wrote:
>"Thomas" <tho### [at] gmxnet> wrote in message
>news:web.3d6b57f7612a00a4bbe30ae0[at]news.povray.org...
>> Hello all,
>>
>> How does a trailer follow the car/truck that is pulling it through bends,
>
>    The trailer is physically attached to the car/truck.

I know that ;)

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.


>    No. It's all down to the physical connection between the two, no 'magic'
>is
>required. In fact you do know magic doesn't actually exist don't you ?

Really???? ;)

Thomas


Post a reply to this message

From: Christoph Hormann
Subject: Re: Truck and trailer
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

From: hughes b
Subject: Re: Truck and trailer
Date: 27 Aug 2002 09:16:35
Message: <3d6b7bb3$1@news.povray.org>
"Thomas" <tho### [at] gmxnet> wrote in message
news:web.3d6b57f7612a00a4bbe30ae0@news.povray.org...
>
> How does a trailer follow the car/truck that is pulling it through bends,
is
> there some magic formula for it? All I can figure out is that the angle
> between the two is related to the length of the trailer but beyond that
I'm
> a bit lost.
>
> Is it clear what I'm asking?

Yes. I don't know the solution though.

The hitch point should shift based on the change of direction of the pulling
vehicle's front wheels while the rear wheel axle center acts as a pivot
point, maybe. I think you'd use the angle from along centerline of front to
rear wheels and match that for the trailer hitch to its wheels as though the
hitch were a front wheel.


Post a reply to this message

From: Thomas
Subject: Re: Truck and trailer
Date: 27 Aug 2002 09:20:03
Message: <web.3d6b7b4ea31ba4aabbe30ae0@news.povray.org>
Christoph Hormann wrote:
>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.


Hmmmm this might be usefull, but I was looking for something more physical
correct.

Just re-reading your four lines there seems to suggest that the trailer can
not make a curve at all since they only can move in there current
direction. Or is that just me mis reading it.

Thomas


Post a reply to this message

From: Christoph Hormann
Subject: Re: Truck and trailer
Date: 27 Aug 2002 09:47:21
Message: <3D6B82E9.A975ABC3@gmx.de>
Thomas wrote:
> 
> >- 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.
> 
> Hmmmm this might be usefull, but I was looking for something more physical
> correct.

The limited physical correctness of this approach is just in terms of
dynamics.  Taking this into account would complicate the problem quite a
lot.

> Just re-reading your four lines there seems to suggest that the trailer can
> not make a curve at all since they only can move in there current
> direction. Or is that just me mis reading it.

The emphasis is on *current* direction.  You will probably have to weaken
this requirement a bit (i. e. not use it as a strict rule) to make sure
the distance between the wheels stays the same.

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

From: Christoph Hormann
Subject: Re: Truck and trailer
Date: 27 Aug 2002 10:02:56
Message: <3D6B868F.D45FB604@gmx.de>
Christoph Hormann wrote:
> 
> [...]
> 
> > Just re-reading your four lines there seems to suggest that the trailer can
> > not make a curve at all since they only can move in there current
> > direction. Or is that just me mis reading it.
> 
> The emphasis is on *current* direction.  You will probably have to weaken
> this requirement a bit (i. e. not use it as a strict rule) to make sure
> the distance between the wheels stays the same.

BTW, you can also think of it a different way: The two wheels and their
axis always move on a circle with it's center somewhere on the axis.

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

From: Thomas
Subject: Re: Truck and trailer
Date: 27 Aug 2002 11:50:10
Message: <web.3d6b9ebba31ba4aabbe30ae0@news.povray.org>
Christoph Hormann wrote:

>BTW, you can also think of it a different way: The two wheels and their
>axis always move on a circle with it's center somewhere on the axis.


That's what someone here at work suggested as well, but the truck is moving
along a spline and I don't think that it is easy to determine the radius of
the spline at any given point.

Thomas


Post a reply to this message

From: Christoph Hormann
Subject: Re: Truck and trailer
Date: 27 Aug 2002 12:05:49
Message: <3D6BA35D.797F0EFE@gmx.de>
Thomas wrote:
> 
> >BTW, you can also think of it a different way: The two wheels and their
> >axis always move on a circle with it's center somewhere on the axis.
> 
> That's what someone here at work suggested as well, but the truck is moving
> along a spline and I don't think that it is easy to determine the radius of
> the spline at any given point.

That's not the point, the trailer won't follow the same path as the truck
anyway, it was just meant to give an idea how things are supposed to work.

BTW, taking a piece of paper and drawing the trailer and it's movement
will be quite helpful for finding a good method calculating it's movement.

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

Goto Latest 10 Messages Next 10 Messages >>>

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