Bendy objects

So I know that with wind in trees, the trees bend… but what script would i use to make this happen for any object that i put the script on? so, if i had a light pole, and it had the script, it would bend with wind.

You’d probably need something like the Megafiers addon, along with a script, to make that happen. You’re talking about mesh deformation and that’s not going to be an easy script to write.