General Category > Machines Simulator

Joint Code

(1/2) > >>

Hello Everyone, I'm trying to connect box index [1] and box index[3] using Joint.. but i can't seem to perfectly match them..
It's purpose is to connect the Arm and the jib conveyor. so when the user press "Up/Down" the Arm will go up and down so as the conveyor.. attached file for editing purposes.. Thank you very much..
I've read the manual for joint but i can't understand how the axis work and positioning .. Any help will be appreciated...  ;D

anyone?  ;D

Due your component uses customized models is diffucult to have an idea about how it looks or what behaviour must to have.
Please can you use standar box models and resend?

Here master, please have a look.. I need my Conveyor goes Up and Down together with the Arm to deliver the part... Thank you in advance

Here is attached the solution.

Points of interest:

* The Draw() method should be used to drawing routines, for other logic is better Update()
* Try to locate the main object to move in the center of coordinates, then the logic is easiest
* Avoid to rotate elements that later must be moved, use the scale properties (see as I have cancelled the rotation by changing X,Z)
The Union Joint are very easy to use, you only must to set the body origin (where to attach) and the body attached. Then move the origin element by code and the attached will be responsible to physics, otherwise the physics doesn't recognize the code forces.


[0] Message Index

[#] Next page

Go to full version