How can i make a Forklift Controller

All topics on coding 4Dscript in Enterprise Dynamics.
Post Reply
shio
Posts: 5
Joined: Thursday 17 June, 2021 - 10:25

How can i make a Forklift Controller

Post by shio »

Hi guys,

I'm trying to make the same replica from the model Advanced transporter Pick and place 2. But I don't know how the forklift controller is made. Can anybody show me how I should make one?

many thanks in advance!
User avatar
HarryBunnik
Posts: 362
Joined: Monday 07 February, 2011 - 11:22

Re: How can i make a Forklift Controller

Post by HarryBunnik »

Hi Shio,

Have you already found the code of the ForkLiftControler? This example model is a bit different from the other examples, in that way that there is special code used, where normally only standard atoms are used. However, to get this specific behavior, it gives a lot of extra possibilities.

You can find it using the Atom editor (the ribbon Tools). If you then go in the tree to the model and select the ForLiftControler, you can see that there is code on the Event (the interesting part), 2Ddraw (visualization) and on the Init (mostly defining global variables).

ForkliftControler_Code in Atom editor.png
ForkliftControler_Code in Atom editor.png (43.53 KiB) Viewed 12031 times

I hope this helps you further!

Regards,

Harry
Post Reply