How can I prevent tires from glitching in all directions while driving? I am using
WeldConstraint
to keep fake tires in position with real tires which are invisible for players.
What if you just made tire decals over the invisible wheels?
No, it won’t work. I am using 3D objects for tires them self’s and rims that can be fully customize-able, and textures are not fitting into design.
Don’t make them collide with CanCollide = false or using Collision Groups …?
Can’t I just in some way completely weld them forcefully?
WeldConstraints should be forcefully keep them in place however it doesn’t appear to be doing it for you
If you mind, can you please provide a video or GIF of the wheels
I will try to, since there is a size limit, and my recorder goes crazy with size’s of video’s.
Turn off cancollide for the fake wheels. Since they are “Fake” you don’t need them for any collision. The real wheels serve that purpose. Also, make sure the wheels are welded to the PrimaryPart of the car, not the real wheels.
But if I don’t weld them to wheels, they won’t show any sign of the movement, right? Yes my wheels have cancollide off
Your car body also seems to be shaking too despite the wheels being non can-collide
Have you checked your suspension?
maybe try setting dampening to 0 on the spring?
I’ve found in the past that it introduces some weird physics issues
Now it’s shaking. So what I could do now?
Hmm. Might not be a suspension issue then
edit: do your fake wheels only have weldconstraints and nothing else?
Yes. They have only WeldConstraints
How are you rotating them then?
I am rotating them using AngularVelocity
.
Is the attachment’s position set to 0, 0, 0/centre of mass of the wheel?