GPIGGroupA / WindturbineDroneProject

0 stars 0 forks source link

Add wind based effects #3

Open HarryBurge opened 2 years ago

HarryBurge commented 2 years ago

Add wind into the simulation

HarryBurge commented 2 years ago

Will need to put changes into unity move, and also make data accessible in drone move. Turbines turn off over certain wind speed

tt792 commented 2 years ago

So we need a way of creating a mesh of weights that can be referenced to get wind in a given area Current Idea:

tt792 commented 2 years ago

I have now added perlin noise which can be referenced to get a wind direction and magnitude as a 2D vector The fn takes a drones x and z position scales it to a certain size and uses local values to calculate the wind direction

I have created a script to access this which can be added to objects and which when called displays a ray in the scene in the direction of wind at that position. Does not effect drone angle yet Potentially needs altering to change to take an average of recent wind options, rather than polling close points.