Parts not moving correctly

The other thing i was thinking is the script you are using to turn the wheel… is it just rotating the part? Your script should be controlling a hinge constraint motor on the wheel if you want it to have physics… i believe just rotating the part wont cause any force to move another part.

Edit: you dont even need a script if u just want the wheel to constantly spin.

Well, I think I literally solved the issue by making it a simple cylinder for the green part.

The only problem now is when I load the game, the pink part spawns on top of the green part, instead of around it.

I’m using a normal weld I guess (the icon is a blue square).

How can the pink spawn over the green it is held on both sides?

Pretty sure it is just the hitbox of the model including the green part and the spinning plate.

Forgot to mention that most of these pieces are separate models, which actually could be the problem.

Is the plate a mesh? Have u checked its collision fidelity?

Another question is how are you setting the plate up to line the cylinder inside the pink?

Well based on the video in the main post, the green part is on the edge of the plate, where the edge of the pink part is rounded.

Meaning when the green part spins, it should move the pink part left and right.

Also, I got the pink part to fit around the cylinder, now it comes back to the cylinder phasing through the inside of the pink part, and moving the outside parts.

What i meant is the script is probably turning the plate before the pink part even loads in.

I made the rotation delay 5 seconds, the same thing happened.

Change the friction and friction weight to 0. Maybe there’s an issue when the green peg pushes against the magenta part.

image

This wheel needs to be on a hinge constraint i dont believe rotating it will move any parts with physics.

1 Like

Not sure how to do that, unfortunately.

Haven’t experimented with hinges and stuff like that yet.

It shouldnt be hard at all, i can do it for u if u post the file up here, but not tonight i can do it tomorrow morning or i can link u to a video that teaches it…its not hard.

You can link the video.

Also, I assume I put the hinge under the plate, right?

Yes you will create the hinge, and attach one of the two attachments to the anchored base and the other to the plate, but perfectly straight to one another … pull the parts apart to do this correctly then bring the parts back to where they were. The video should show all this… lemme fetch it.

Then u configure the motor actuator on it and set the force and angle speed.

Edit: here u go:

I’d have to guess this either has something to do with the union being to complicated or rotating it via scripts. I tried making a simple version of this (using a hingeconstraint) and it worked flawlessly:

EDIT: New file, last one wasn’t welded. Still works though
HingePhysicsTest.rbxl (43.5 KB)

Maybe compare them and see if there is a major difference.

Also i believe your plate was anchored before since the script was just rotating its axis. With this hinge, you will want the plate unanchored so it can turn freely to the force you set it to (which can easily be set once in property or scripted in, either way). Scripting it can allow you to control it much better obviously.

Any way I can make the hinge movement snap to grid, I can’t get a perfect center for the movement.