Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you want to use Kinematics, you will firstly need a Kinematics Controller .This component controls all Kinematic Transforms in the scene.

...

Step 2. Add a Belt System to the Belt.

To create a Belt System and assign it to a GameObject, select the GameObject and go to Standard Components > Belt System > Add Physical Component.

...

A Loft Mesh needs a circumference Spline and a surface Spline. We recommend you generating a circumference Spline for the Belt System using the Belt Renderer .

First add the Belt Renderer to the Belt. To add the Belt Render, go to Standard Components > Belt System > Belt Renderer.

...

When you create a Belt Roll it will try to find a Wheel Joint on the same GameObject. If it cannot find one, it will automatically create one.
Set the axis direction for both Wheel Joints, on the Driver Roll and the Passive Roll, to Left. This way the Wheel Joints are orientated in the proper direction.

...

Next we need to position the Surface Spline properly. The Spline needs to be positioned on and perpendicular to the Circumference Spline. Use the Alignment Tool to position the Spline on one of the Spline Control Points of the Circumference Spline. For this example we used Point[1] of the Circumference Spline.
In the Aligment Tool, select Surface Spline to be Part A. Select Point[1] of the Circumference Spline to be Part B. As the Alignment Tool Type, use Transform Pivot for both. For Affected Fields select Position and click Apply Alignments.

...

To transport objects over the belt, it needs a velocity. It determines its velocity through the rotation of a Wheel Joint. We need to add a DC Motor. to the DriverRoll to have the Wheel Joint rotate and move objects over the belt.

...

Info

If you would like to check whether the DC Motor works, enter PlayMode. Then Add Control Panel for the DC motor from its Control Panel tab. This will generate a new Control Panel on the same GameObject. Set the Preferred Velocity to any value except 0 and check whether Wheel Joint starts rotating.

...

For a guide on how to install Beckhoff Twincat ADS, please watch this tutorial: https://www.youtube.com/watch?v=AEhG1JLPl3w Twincat ADS Tutorial.

To be able to control the Conveyor Belt through an external controller, in this case a Twincat PLC, you will need to create a Logic Simulator . A Logic Simulator will control each Logic component that is parented under it. To add a Logic Simulator, make sure that nothing is selected in the hierarchy and go to Logic > Add Logic Simulator. This will create a Logic Simulator on a new GameObject.

...