Hi community,
I need to set a new variant of the turning mode od the Advanced Transporter. I depitched below the behaviour that the AT has to follow:
[img] [/img]
When the AT arrives at a certain node and has to turn more or equal to 90 degrees, the AT has to wait for X seconds and then has to immediately turn.
Have you any suggestions?
Thanks
Fabio
Advanced Transporter: variant of turning mode
- HarryBunnik
- Posts: 362
- Joined: Monday 07 February, 2011 - 11:22
Re: Advanced Transporter: variant of turning mode
Hallo Fabio,
This is a bit more complicated. I've adjusted an example model of the Advanced Transporter for this, but I'm not sure if it is complete for all angles. However I think it's enough to give you a start.
What you'll have to do is to alter the Events of the Advanced Transporter. In this case the first Event (this is the event where the traveling from one point to another is handled). Here you'll have to calculate the angle between the Advanced Transporter and it's destination. When this is bigger then the 90 degrees, it has to jump, otherwise execute it's normal routine.
I also created a new Event (21) where the waiting time is done and the Advanced Transporter is "jumping" into its new position.
I've added the code in the Transporter1 in the model.
I hope this help you a bit further.
Cheers,
Harry
This is a bit more complicated. I've adjusted an example model of the Advanced Transporter for this, but I'm not sure if it is complete for all angles. However I think it's enough to give you a start.
What you'll have to do is to alter the Events of the Advanced Transporter. In this case the first Event (this is the event where the traveling from one point to another is handled). Here you'll have to calculate the angle between the Advanced Transporter and it's destination. When this is bigger then the 90 degrees, it has to jump, otherwise execute it's normal routine.
I also created a new Event (21) where the waiting time is done and the Advanced Transporter is "jumping" into its new position.
I've added the code in the Transporter1 in the model.
I hope this help you a bit further.
Cheers,
Harry