Cancel
Showing results for 
Search instead for 
Did you mean: 

Move a transporter to an absolute reference on a path

Builder
Builder

Hi all,

 

I'd like to move a transporter localized anyway on a one lane path, 5 meters away (for exemple) from is position (positive or negative) without using sensors.

 

I tried a .move, but the transported is teleported !

 

Any idea ?

 

Thanks a lot in advance !

3 REPLIES

Re: Move a transporter to an absolute reference on a path

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

starting from V 12 you can use targetPosition. The transporter moves automatically to this position. You can observe this value (-1 means position reached).

 

In your case:

 

track.cont.targetPosition:=track.cont.frontPos+5;

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Move a transporter to an absolute reference on a path

Phenom
Phenom

use transporter.speed and

transporter.stopped to start/stop the transporter

Re: Move a transporter to an absolute reference on a path

Builder
Builder

Thanks a lot Smiley Happy