CurryKitten / CurryKitten-Sim

FPV quad simulator
67 stars 7 forks source link

Stop the wind turbine blades floating away #57

Closed CurryKitten closed 4 years ago

CurryKitten commented 4 years ago

I thought I'd already fixed this, but it still seems to be happening. If left the wind turbine blades will very slowly float away.

Despite already putting a "fix" in that is supposed to stop the movement and only allow Z axis rotation, they are still wandering off. But not all of them. Leaving the sim running for 8 hours it looked like this

Screenshot 2020-06-15 at 07 54 22

It's even weirder given that the turbines were a copy/paste of the original. Will investigate further

CurryKitten commented 4 years ago

This is a weird bug. All turbines are the same and yet 2 props float off. So I tried duplicating the turbine that ok to the positions of the other 2. This solved the problem... unless I used the online version and then it was back!

I fixed in the end by taking a reference position of the prop at the start of each instance of the script that does the rotation and then moves the prop back in line as we rotate it... which sounds like massive overkill, but there you god.

I think this movement is due to the colliders hitting each other during the rotation which is somehow pushing the whole blade out... I don't know why, or how it only affects two of them, but it's fixed so I'll close this and pretend it never happened.