i want to set my transporter with size: 4.7m Length and 1.6m Weigth. I found a Attr. of transporter: setlength. I tried with it, but it doesnt chang anything . How can i set the size of the transporter size in 2D and 3D?
And means the size of icon the real size of transporter in simulation?
Solved! Go to Solution.
Look in the attributes tab,
there you can change the dimensions , which will also update the symbols and 3d geometries
if you want that scaling to happen during the simulation you can use something similar to the following code
--sizes set and also representation set for 2D
@._3D.Scale:=makeArray(5,3,2)--representation set also in 3D
to scale the size of your transporter and its icon in the simulation both in 2D and 3D while it e.g. exits the source, or you can also set this scaling using an init method. You just will have to change these sizes in 3D corresponding to what you have set in 2D to get corresponding results.
Is your model set to "2D and 3D" in the model settings? And where do you run the code in your model?
Could you post your model here? Or you can also have a look at the attached example model where setting the size of the transporter worked for me with the above method.
Like Alex_D said, i did not used vector grafic. And now it works!
OK, great! (I looked at another post of yours and saw that you actually had Vectorgraphics activated there, so I deleted my post before you replied with this. )