I have left and right pedals for a bike, parented to a crankset and attached via sockets. As the crank turns, I want the pedals to turn around with it, but to keep the pedal’s Y rotation locked (allowing the pedals to stay horizontal as they’re rotated around with the crank arm).
This seems like a simple setup, but I can’t see a way to lock the rotation of the pedals in Y axis only (have tried setting absolute rotation on the pedals, but that locks all axes).
I understand I can use physics constraints, to connect the pedals to the crankset, and then constrain rotation there, but I want to avoid calculating physics where possible.
I understand I can set the rotation on the pedals every tick, by getting the current Y rotation and applying the inverse. Again, this seems like an overcooked solution.
Is there a really dumb, simple way to just say to Unreal - “lock the pedal’s Y rotation” ?
Thanks very much!