Cancel
Showing results for 
Search instead for 
Did you mean: 

MUs Animation

Hello everyone,

 

I have a problem about animating an entity in a transporter and animating the transporter.

What I need to do is that when the transporter reaches the curve of a line, to keep the position it had in the line and when the curve finishes, to take the same position it had before.

 

About the entity, I need it to rotate 90 degrees when it reaches the curve of the line and when the curve finishes, to keep the same position it had before it entered into the curve.

 

*I wanted to attach the file but the page won´t let me, if someone needs the file I´ll share it by sending an e-mail.

 

Thanks in advance

 

Marco Rodríguez Motilla

8 REPLIES

Re: MUs Animation

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
you can deactivate "rotate movables" in the tab curve of the line or you try the AngularConverter

to rotate the MU you can use the method turnIcon
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: MUs Animation

Phenom
Phenom

@ sharing /uploading  *.spp files

 

zip the *.spp file before attaching for upload

Re: MUs Animation

Thanks, but it didn´t work. I already could attach the file. I hope you could help me.

Re: MUs Animation

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

the AngularConverter works well in 2D and 3D

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

Re: MUs Animation

Thank you, now I just need to rotate the entities 90° when they reach the angular converters.

Re: MUs Animation

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

you need different approaches for 2D and 3D

 

- 2d: turnIcon(90) e.g. as exit control rear in line:

 

for var i:=1 to @.numMU loop

   @.mu(i).turnIcon(90) --2D

   @.mu(i)._3D.rotation:=makeArray(90,0,0,1)--3D

 

next

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

Re: MUs Animation

Thank you Steffen, I already could make my MUs rotate, the problem now is that it stops at the end of the line instead of continuing in the angular converter.

Re: MUs Animation

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
use the exit control rear and not front (if you use the exit control with activated checkbox front, you need to move the MU at the end of the method: @.move)
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net