If we have rain anywhere in the level, or possible puddles of water that could be splashed up on the windscreen, we could animate the windscreen wipers on the cars. I think it would look really cool, but have no idea how we could 1. Get the water to appear on the windscreen 2. Make it look as if the windscreen wiper was actually wiping it off.
Any ideas how to get this working?
Could be cool, do you mean so we have 2 different camera view, like one 3rd person and one from inside the car? If not, and we only have a 3rd person one then there wouldn't be much point as you wont see the windscreen.
ReplyDeleteAs for getting it working, what happens when the rain in Unity collides with an object? does it go straight through it or run off the surface?
I thought we were having both camera angles? If the rain colides with something, I don't know if you can make it run off realistically, or whether theres a way to animate a rain texture on the widscreen. You can set the rain to colide with stuff though
ReplyDeleteUnity can display movie textures so if we make a movie of some rain hitting a flat surface, then being wiped away, we can apply it to a plane overlayed on the windscreen and use that, although it would be pretty hard to get the wiper and the texture wipe to line up.
ReplyDeleteIf we just use one camera and parent it to the empty gameObject that the rest of the car will be parented to, we can animate the camera flying forward into the drivers seat, and then back to a 3rd person view. Then we can trigger the animation when a button is pressed. Because the camera is parented to the empty gameObject of the car, it will move with the car at all times.