I’m currently working on a script which sets up constraints on a car for me.
The problem is that my wheels don’t align properly towards the car’s root.
This is the attachment from the car’s rootpart.
RA.Orientation = Vector3.new(0, 0, (90 * math.sign(wheel.Rotation.Z - .05)))
This is the attachment from the wheel.
WA.Orientation = Vector3.new(0, 0, -(90 * math.sign(wheel.Rotation.Z - .05)))
I have attempted using this on my root’s attachment RA
RA.Orientation = Vector3.new(0, (180 * math.sign(wheel.Rotation.X)), (90 * math.sign(wheel.Rotation.Z - .05)))
But as you can clearly see, the wheels face inwards instead of outwards now. Yes I tried adding a -
before my Y axis and also multiplying it by *-1
. No effect.
My replies might be very late as it’s currently 1 AM and I have a busy school day tommorow so I apologise in advance.