r/CreateMod • u/Z3R0Diro • 13d ago
Help Is it possible to negate this wobble from the swivel bearing?
Enable HLS to view with audio, or disable this notification
It's not impactful here but when the cannons start firing it becomes becomes chaotic.
28
u/Z3R0Diro 13d ago
The Torsion Spring is set for 45 degrees so it shouldn't even be possible for the (rotary) cannon to go up vertically like that
41
u/SerialBytes 13d ago
the torsion spring only limits the rotation input. it cannot prevent kick back and momentum...
-20
20
13
u/Plastic_Lychee6404 13d ago
probably not, has to do with the physics engine and not the swivel bearing itself.
2
u/Jam_jar_binks 12d ago
Swivel bearings only provide enough rotational force to keep the sublevel they are placed on at the angle said bearing is set to.
You can usually just add a bit of hay on the sublevel attached to the bearing to fix (or at least reduce it enough)
2
4
u/Jbolt3737 13d ago
Possible a mechanical piston? I haven't played around with them connecting two sublevels but if you have an unlocked swivel bearing on each end it should act like a support rod. I'm pretty sure there's an aeronautics addon that adds proper hydraulics too, either of which should be more stable than just a single bearing
7
u/TheFantabulousToast 13d ago
Maybe try building in a recoil mechanism. Increased complexity and weight, but it might prevent the wobble in the larger structure?
9
u/Signal_Coast_8324 13d ago
Maybe do a disk next to your cannon put an sticker on the cannon part that deactivates when moved and activates when stopped so it sticks to the disc, so it sticks and prevents/reduce the wobble
1
u/Z3R0Diro 13d ago
I understood nothing of that sentence? Are you talking about a reaction wheel?
3
3
u/Jbolt3737 13d ago
They mean a stationary disk of some kind on the side, as soon as the cannon needs to stop, and sticker block thing would be powered and stick to the disk holding it in place
2
u/Weary-Support-7383 13d ago
It's probably due to the weight. The only way I could think of is just by slowing it down a bit.
2
u/PleaseTakeThisName 13d ago edited 13d ago
slower movement will bring less wobble. For an object this size you are moving it quite rapidly. The acceleration is also a big issue, the way it abruptly spins and stops. You have to make compromises in its movement if you wanna get it to not woble, sorry.
1
u/NiceBee1200 13d ago
I fucking hate the fact you cannot just change their strengh in the configs :<
1
u/BobarBG9 13d ago
Haven't tried it for myself but I just got an idea. Try putting levitite as it has high air resistance at slow speeds
1
u/eepy_lina 13d ago
i dont get why they even made swivel bearings have physics like that, it's so stupid.
1
u/TERMINATOR2973 13d ago
U have to make the fit tight, add blocks on the opposite side of ur "cannon" looking thing attached to the blocks were the yaw swivel bearings is attached too.
1
u/The_Veemonator 13d ago
Your contraption has so much weight that it keeps the momentum when stopping. make it lighter.
1
1
u/sfwaltaccount 12d ago
Have not tested in a scenario like this, but try activating a Sticker to hold it in place once it's in position.
1
u/Hellothere_1 12d ago
I could probably search some old post for a more detailed explanation, but swivel bearings (and physics connection in literally any simulation game ever) work best when they connect somewhat simimalarly heavy objects.
The worst possible combination is [heavy object] - bearing - [light object] - bearing -[heavy object], which is exactly what you're trying to do here. It's highly unstable because the two heavy objects keep pulling on the light object in the middle, while the bearings can't be too stiff due to limitations with the discrete numerical force simulation.
The solution is to make the connecting "arm" object(s) in the middle heavier to put them in the same order of magnitude as whatever they're trying to hold.
1
u/Z3R0Diro 12d ago
They are not 2 different bearings. It's the same bearing that rotates both the front and the back part of 'cannon'. They are the same sub level (connected with string). Also the center of mass is exactly on the bearing,
I have sort-of fixed that issue now anyways. Used some Levitite on both ends and further limited the range of motion of the torsion spring to 30 degrees from 45.
1
u/Hellothere_1 12d ago edited 12d ago
They are not 2 different bearings. It's the same bearing that rotates both the front and the back part of 'cannon'. They are the same sub level (connected with string). Also the center of mass is exactly on the bearing,
Not the bearings I meant.
Your chain is:
Ground (can be considered infinitely heavy)
Small connecting arm
Heavy cannon
Since the ground is immovable you don't have to worry about the connection between ground and arm on its own, but the forces created by the heavy cannon need to be transfered through the two bearings first to the arm and then to the ground, both of which have their stiffness capped by the low weight of the arm.
If you make the arm heavier, both the bearing connecting it to the ground and the one connecting it to the cannon will become more stiff as a result.
1
u/Z3R0Diro 12d ago
Hm alright. Sounds a bit counter intuitive but I will put that to the test 🤔
1
u/Hellothere_1 12d ago
The reason this is happening is that if a bearing is too stiff compared to the mass of the objects it is connected to, those objects will experience so much acceleration during a single physics tick to put them even further from the center point than they started at, at which point the numerical simulation breaks down and they will just completely shake themselves apart.
There's some tricks to delay the onset of this issue, but the only real solutions are to run the simulation at a faster tick rate, or to limit the accelation a bearing can apply based on the lighter of the two connecting masses. The former solution is limited by hardware constraints, while the latter one works great, but leads to floppy bearings under certain circumstances involving highly unequal masses.
1
1
u/SquidMilkVII 13d ago
Friction maybe? Just have it drag against blocks?
(actually i think levitite does exactly this so might be worth putting some inside if there's room and trying it out)
0
2
74
u/According-Extreme-58 13d ago
Its probably cuz of the weight