Lopez-Berbel.Pedro Posted February 15, 2018 Share Posted February 15, 2018 (edited) Hello, I am a slightly new in Unigine. I have checked that in the Editor 1 is posible to create the joint between two objets on design mode. but on the other hand, in the Editor 2 I do not find how to create this joint on mode design. Attach an image how to do it in the Editor 1 My doubt is the following, is it possible to create a joint on design mode in the Editor 2? In the case than this is true, How could I do it? Best regards Pedro Edited February 15, 2018 by Lopez-Berbel.Pedro Link to comment
morbid Posted February 16, 2018 Share Posted February 16, 2018 Hello Pedro, right now you can't configure joints in Editor 2. We're working on implementation. However, it is possible to do via code, please, check this article. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Lopez-Berbel.Pedro Posted February 16, 2018 Author Share Posted February 16, 2018 Hello Mordid, I have done the joints via code, my problem it is to get the correct position of the objects. For example, I have imported a FBX Object, Attach the object. Coul you explain me the best way to get the correct position to manage the joints? Thank you Link to comment
morbid Posted February 16, 2018 Share Posted February 16, 2018 Sorry, but problem on a screenshot isn't obvious. Are you creating wheel joints? What exactly do you mean by correct position? Probably a test scene would be helpful. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Lopez-Berbel.Pedro Posted February 16, 2018 Author Share Posted February 16, 2018 (edited) No, I am creating Joints Suspension. When I talk about correct position I want to talk about Anchor Coordinates. My problem is to figure out the Anchor Coordinates of each wheel. Are there any way to get the lenght, width and height of an object? Edited February 16, 2018 by Lopez-Berbel.Pedro Link to comment
alexander Posted February 20, 2018 Share Posted February 20, 2018 Hi, Are there any way to get the lenght, width and height of an object? You can use Node::getBoundBox() / Node::getBoundSphere() to get the dimensions in the world coordinate system, or ObjectMeshStatic::getMesh() -> Mesh::getBoundBox() to get the dimensions in the local coordinate system (more correct way in your case).Coul you explain me the best way to get the correct position to manage the joints? The best way is to set all the values manually. ;)Automatic values will be incorrect from time to time. Best regards, Alexander Link to comment
Lopez-Berbel.Pedro Posted February 20, 2018 Author Share Posted February 20, 2018 Thank you for your answer. At the end I have found out the mistake. the wheels were correctly joints to the car, but their origin coordinates were in the midle of the car, for this reason, when I created the JointIntersections, the wheels moved to the center of the vehicle. See you Rafael Link to comment
Recommended Posts