Constraint issues

I am trying to make a type of suspension on a single set of gear to bounce using constraints, although i have a model with a set of 2 gear combined, that works yet single does not work for me, i need some help throughout this project as this is constraints and im not the best in the constraints area.

This is the model above is the model i test using the ‘run’ method. I’m trying to get though the middle part has a spring and a prismatic, i can’t explain it too much though.

I have contact up to 23 people and none have no idea, i have checked around on twitter and the developer hub and cannot find a solution to how i can fix it. (This is a plane gear so when it hits the ground the top bit comes down and the grey/gray part and goes up when its lifted off the ground!

If you can help me, message under here or on discord: Craig from the Bar#1920

You can find a video on youtube, when landing the nose gear comes down and pushes it down, if you know a way this can be fixed would be appreciated. This is the constraints in studio,

Can you upload a model of it so we can check it out for ourselves?

Ok, here’s the link. Gear - constraint issue.rbxm (1009.1 KB)

@ThanksRoBama Have you attempted or?

1 Like

I’m trying to understand the mechanism, and this is what I’ve got so far:

The red-marked parts are rigidly connected, and the blue-marked parts are rigidly connected. The “blue” assembly moves up and down by sliding “inside” the cylinder on the red assembly, using a combination of a PrismaticConstraint to keep the movement parallel to the red cylinder, a Spring to dampen the movement and a Rope to limit the movement.

The two “arms” on the left are rigidly connected to their corresponding assemblies, but are connected to each other with a Hinge. I expected that hinge to be perpendicular to the travel of the “piston in cylinder” mechanism, but it’s actually on a weird angle like this:

That doesn’t seem right, let me know if I’m misunderstanding.

Even if that hinge worked as I expected, the mechanism would be completely constrained! I.e. there should be no way for it to move. The mechanism is essentially a triangle. For the mechanism to move as expected, the long side would have to get longer and shorter. Since the two over edges cannot change lengths, the only way for that to happen is if all three angles in the triangle can change freely. That means there would have to be Hinges where I put yellow dots in the drawing. The two “arms” would still have a purpose, keeping the wheels from rotating on the vertical axis.

Removing the arms and extending the wheels fully, it looks like so:

It seems the movement of the blue assembly isn’t parallel to the red “cylinder” assembly. Selecting the attachments of the PrismaticConstraint, it seems like they’re at an angle which could explain that. Inspecting the Orientation of these attachments reveals that they’re off from increments of 90 by a couple of degrees

image

Manually setting it to the nearest increment of 90 makes it parallel:

But it’s still offset a bit to the side, i.e. the piston and cylinder aren’t colinear / on the same line. This is due to the attachments of the various parts being offset in all sorts of weird ways. Zooming in using a low Field of View, you can clearly see how things are misalinged in the original model you sent:

I tried adjusting them to get them lined up, but didn’t get a perfect result. If you want to get it perfect, I suggest redoing some of the subassemblies, using the Properties window to manually type in numbers to get things perfectly aligned when e.g. trying to get things in the center of another thing.

Here’s the landing gear with the changes I talked about:

landing_gear_improved.rbxm (1009.0 KB)

I think the issues came up because you’ve been using the constraint button to place constraints and attachments with the mouse. This can sometimes be okay if your parts are sized in a way that the move increments can make sure that things are placed e.g. in the center, but with your complicated / non-flat meshes with weird angles and sizes, it’s better to align things manually by typing in numbers.

1 Like

Ok, thanks for the solution i will go and play around with some numbers and try to make it accurate!

Ok so i’ve attempted to modify it, the uh prismatic is breaking throughout creating a ‘broken’ effect;
I have a double model, which i will link below, i have tried the same way as that.
as shown here: Suspension - Roblox

Can’t get it:

image

Can you upload the model file instead?

Ok it was onsale just before- ok, it’s been updated sorry about that.

not sure if you meant to but its off sale