Sevdat Posted July 20 Posted July 20 Good evening, I don't understand what is wrong. The joint is randomly moving: 2024-07-20 17-36-28.mp4 Settings for sphere: Settings for Cube: I create the jointHinge and press "Fix 0" and it doesn't work properly. How can I fix it?
arizmenda Posted July 22 Posted July 22 Hi, Sevdat! Can you also sent the shape parameters for both objects? In addition, can you also elaborate on the final result you want to achieve? Such behavior can depends on contradiction between mass/restitution/joint position. Thanks!
Sevdat Posted July 22 Author Posted July 22 25 minutes ago, arizmenda said: Hi, Sevdat! Can you also sent the shape parameters for both objects? In addition, can you also elaborate on the final result you want to achieve? Such behavior can depends on contradiction between mass/restitution/joint position. Thanks! Good morning arizmenda, This is the shape, but I think I kind of understood what is wrong. Still struggling with it though: This is the sphere, and the box has radius 0.86603 Form what I understood, if the jointHinge is not in the center of the object Axis it will cause problems. but I can't seem to change where I want the axis to be, because if I change the anchorpoint 0 and 1: the beginning of the blue line isn't at the center anymore and breaks the physics.
arizmenda Posted July 22 Posted July 22 If you having difficulties with setting joints up be sure to check the video tutorial about physics: There is also helpful demo <SDK Folder>\data\samples\joints\hinge_00. You can see how the scene is set up in it. 2024-07-22 14-50-07.mp4
Sevdat Posted July 22 Author Posted July 22 12 minutes ago, arizmenda said: If you having difficulties with setting joints up be sure to check the video tutorial about physics: There is also helpful demo <SDK Folder>\data\samples\joints\hinge_00. You can see how the scene is set up in it. 2024-07-22 14-50-07.mp4 4.8 MB · 0 downloads Good day arizmenda, I have watched the tutorial videos multiple times and checked out the demo. I've come across a similar problem in: samples/joints/hinge_01: When deleting the objectMeshDynamic_545 why does it start going out of control? 2024-07-22 10-22-51.mp4 The tutorial video doesn't go in detail how to crate and connect joints together.
arizmenda Posted July 22 Posted July 22 Try to increase the iterations parameter to a higher value. Damping should help too, but not in this case, since it already 8 2024-07-22 15-46-49.mp4
Sevdat Posted July 22 Author Posted July 22 42 minutes ago, arizmenda said: Try to increase the iterations parameter to a higher value. Damping should help too, but not in this case, since it already 8 2024-07-22 15-46-49.mp4 3.31 MB · 0 downloads Good day arizmenda, I did as you instructed and its still the same result. I made a video step by step about what I did: 2024-07-22 11-30-38.mp4
arizmenda Posted July 22 Posted July 22 Try to modify few more objects in this row. For instance, I changed inerations in these: That should work
Sevdat Posted July 22 Author Posted July 22 32 minutes ago, arizmenda said: Try to modify few more objects in this row. For instance, I changed inerations in these: That should work Good day arizmenda, This worked, but it still wobbles left and right slightly. At the very bottom the red and green tile go inside out. 2024-07-22 12-16-16.mp4
arizmenda Posted July 22 Posted July 22 Logic is simple here - the more iterations, the less wobbly your structure would be. I modified a couple more objects, and this is the result: 2024-07-22 17-33-35.mp4 1
Sevdat Posted July 23 Author Posted July 23 (edited) On 7/22/2024 at 12:36 PM, arizmenda said: Logic is simple here - the more iterations, the less wobbly your structure would be. I modified a couple more objects, and this is the result: 2024-07-22 17-33-35.mp4 7 MB · 0 downloads Good day arizmenda, I want the jointHinge to either go up or down, but the function of it is fundementally broken. The demo files only show the ideal situations. For example, if a Hinge is created like this it will have broken physics. How can I fix it? Is my understanding of jointHinge correct? It only changes angle in respect to 1 axis. For example, here it should only rotate around y axis. Edited July 23 by Sevdat
arizmenda Posted July 23 Posted July 23 Hi! Unforunately, I'm still not quite understand the final result you wish to get. Do you want to rotate objects around axes? Something like this? (Sorry for poor drawnings) So far it is hard to say what is going wrong. Can you send us some sample with demonstration of the issue? .zip with your project or whatever you like, so we can check it and say for sure. Thanks!
Sevdat Posted July 23 Author Posted July 23 12 minutes ago, arizmenda said: Hi! Unforunately, I'm still not quite understand the final result you wish to get. Do you want to rotate objects around axes? Something like this? (Sorry for poor drawnings) So far it is hard to say what is going wrong. Can you send us some sample with demonstration of the issue? .zip with your project or whatever you like, so we can check it and say for sure. Thanks! Good evening arizmenda, The drawing represents perfectly what I want to achive. I want to use JointHinge to create a body. Arms, Legs, etc and move it, but in order to do that I need to get JointHinge to work properly. The current problem: 2024-07-23 13-25-13.mp4 Unfortunetly, I can't send the project because I am currently not in russia and the internet here is very slow. Sometimes even sending videos over 7 mb fails. My plan is to create Unigine joints with meshes created by vertexes and indices that will attach to each other like Bionicle pieces from Lego We can then combine it with a neural network to create many different types of pieces and train AI inside unigine based on the bodies it can generate for itself. I managed to figure out everything except the joint part because it constantly acts irratically. 1
arizmenda Posted July 24 Posted July 24 Hi! Everything seems to work as intended, take a look. I also attached my settings 2024-07-24 11-14-59.mp4 1
Sevdat Posted July 24 Author Posted July 24 (edited) 1 hour ago, arizmenda said: Hi! Everything seems to work as intended, take a look. I also attached my settings 2024-07-24 11-14-59.mp4 6.85 MB · 0 downloads Good morning arizmenda, I have set the same settings as you have, but I'm still facing the same issue. Could it be because I have the project at Floating Point number system? Is your project using Double? 2024-07-24 07-32-43.mp4 Edited July 24 by Sevdat
Sevdat Posted July 24 Author Posted July 24 (edited) 4 hours ago, arizmenda said: Hi! Everything seems to work as intended, take a look. I also attached my settings 2024-07-24 11-14-59.mp4 6.85 MB · 0 downloads Good day arizmenda, I also created the project with double precision and it is the same problem. Could it be that when the Engine crashed fatally it broke something in the unigine files? Just to be clear, I am not trolling. If you have discord I could show you the problem with the hingeJoint or I can upload the project to google drive and give you a link to it. 2024-07-24 10-10-02.mp4 The video is the new one with double precision. Edited July 24 by Sevdat
arizmenda Posted July 24 Posted July 24 No, I actually have the same issue, but in a float precision project only. Quote I can upload the project to google drive and give you a link to it. Yes, that would be great. This way we can investigate it more thoroughly. If possible, upload the double presision one, please.
Sevdat Posted July 24 Author Posted July 24 1 hour ago, arizmenda said: No, I actually have the same issue, but in a float precision project only. Yes, that would be great. This way we can investigate it more thoroughly. If possible, upload the double presision one, please. Good day arizmenda, I luckily started to upload double precision before I slept. This is the google drive link for double precision. It finished just now: https://drive.google.com/file/d/1mXqZyIYXRQNti0dokz8ljLAEpNv3zi9u/view?usp=drive_link If possible I would like to recommend a joint idea: We use quaternions to decide how we want to rotate. This is a local XYZ axis inside the World axis. If we choose X, every vec3 point will rotate around the local X axis. Technically it behaves a bit like a hingeJoint combined with a ballJoint. There are gifs and codes to explain here in the project I created: https://github.com/Sevdat/UnityVerticesAI/tree/main/Version4 I was going to create this in Unigine, but didn't know how to join it with Unigine physics so I decided to stick with the existing materials. If I create this joint in Unigine could you guys add it to the engine and connect it to physics? I'll add hierarchy logic too. 1
arizmenda Posted July 25 Posted July 25 Hi! Seems like I found the solution (kind of). I swapped the boxes and changed anchor positions to conformity. 2024-07-25 14-47-53.mp4 Still, the reason for this behavior is unclear and it doesn't seem to be normal. We will study the problem in more detail. Thanks for your feedback. 1
Sevdat Posted August 1 Author Posted August 1 On 7/25/2024 at 10:42 AM, arizmenda said: Hi! Seems like I found the solution (kind of). I swapped the boxes and changed anchor positions to conformity. 2024-07-25 14-47-53.mp4 20.35 MB · 0 downloads Still, the reason for this behavior is unclear and it doesn't seem to be normal. We will study the problem in more detail. Thanks for your feedback. Good morning arizmenda, A simple fix would be to use a jointBall with an angle 180 degrees which will act like a jointHinge. 2024-08-01 06-45-46.mp4 Is there a way to create custom joints in ungine? I want to implement this idea: https://github.com/Sevdat/UnityVerticesAI/blob/main/Version4/1_ 1 joint.gif https://github.com/Sevdat/UnityVerticesAI/blob/main/Version4/2_ 2 joints.gif and be able to rotate the joints by defining a rotation axis with quaternions, but I can't get the physics to work.
Miguel-Alejandria Posted August 1 Posted August 1 On 7/25/2024 at 5:42 AM, arizmenda said: Seems like I found the solution (kind of). I swapped the boxes and changed anchor positions to conformity. Interesting, would that be a bug, maybe?
Recommended Posts