Im trying to figure out how to simulate wind physics for a giant fan im making in my game. In the screenshot below, you would walk into the giant part, but end up getting pushed back by the wind inside of it.
For this, I tried using BodyVelocity, but it either wasn’t working, or I didn’t do use it correctly. Anything I should try next?
You could use ZonePlus and when they enter the zone create a VectorForce inside their character with the attachment set to their RootAttachment (I think that’s what it’s called). Also for the force make sure the RelativeTo is set as World and multiply the applied force by the AssemblyMass of the Root
Hmm this is just an idea, but what you could do is calculate the unit vector3 of where the fan is facing torwards. And whenever the player steps infront of the fan you can add the unit vector3 to the player position every .1 second or so, and you can adjust the speed by multiplying the unit vector3, and whenever the player is far from the fan stop offseting, you should use velocities though but after the velocity updates idk how they work anymore LOL, but this is a way you could do it without velocities, but I think it would be best to use velocities.